Created
October 31, 2014 19:00
-
-
Save zwetan/0ec4c476035b8f6d48e9 to your computer and use it in GitHub Desktop.
CGI example 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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