Skip to content

Instantly share code, notes, and snippets.

@zwetan
Created October 31, 2014 19:00
Show Gist options
  • Save zwetan/0ec4c476035b8f6d48e9 to your computer and use it in GitHub Desktop.
Save zwetan/0ec4c476035b8f6d48e9 to your computer and use it in GitHub Desktop.
CGI example 1
/* build:
import redbean.*;
import shell.FileSystem;
compile( "src/index.as" );
if( FileSystem.exists( "index.abc" ) )
{
FileSystem.remove( "index.abc" );
}
FileSystem.move( "src/index.abc", "index.abc", true );
projector( "index", true, OS.linux64, [ "index.abc" ] );
FileSystem.move( "index", "index.cgi", true );
*/
trace( "Content-type: text/html\n\n" );
trace( "Hello, World." );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment