change GettingStarted to have less text between the beginning and when the server is running. Cut out stuff. A lot. If I cut out too much, I'm preemptively sorry. Edited wiki page through web user interface. git-svn-id: http://soc.googlecode.com/svn/wiki@2768 5fae56a1-394a-0410-ba46-5107137fd53f
diff --git a/GettingStarted.wiki b/GettingStarted.wiki index f28c642..880a61b 100644 --- a/GettingStarted.wiki +++ b/GettingStarted.wiki
@@ -1,58 +1,45 @@ #summary How to get started with Melange #labels Featured,Phase-Guidelines,Contents-Draft,Importance-Featured +<wiki:toc max_depth="1" /> + = Prerequisites = -[MelangeIntro Melange] is a web application that runs on -[http://code.google.com/appengine/ Google App Engine]. Google App Engine requires -Python 2.5 or later. Please follow the instructions for your development platform -[http://www.python.org/download/releases/2.5.2/ here] to install Python. - -For other setup information, take a look at CodingHintsAndTips. +[MelangeIntro Melange] is a web application written in python 2.5 ([http://www.python.org/download/releases/2.5.4/ install]) that runs on +[http://code.google.com/appengine/ Google App Engine]. For more setup information, take a look at CodingHintsAndTips. = Checking Out the Code = -If you are not yet a [ContributionReviews#Committers committer] to the Melange project, you can check out the code just run the following command: +Run the following command: {{{ svn checkout http://soc.googlecode.com/svn/trunk/ soc-read-only }}} -On Windows you can use Tortoise SVN to do this checkout, and you drop the 'soc-read-only' - you'll have specified where to put the code already - it's the directory you right clicked on. +On Windows, you can use Tortoise SVN to do the checkout from http://soc.googlecode.com/svn/trunk/ -If you are a committer follow the instructions [http://code.google.com/p/soc/source/checkout here] to create an SVN working copy by checking out the Melange source code. - -= Running the Code = - -Change directories into your SVN working copy (into the `trunk/` directory if you have -customized your working copy). There is currently no _build_ step for the Melange web -application (though one will soon be needed in order to upload Melange to a Google -App Engine instance). However, you will need to create your own `app/app.yaml` file from -the existing `app/app.yaml.template` file. On a UNIX system, in the working copy using -shell commands, this can be done with something like: - += Setting up your Client = +Change directories into the working directory (the one created by checking out the code). Google App Engine requires a file `app.yaml` in the application directory. For now, you can create a dummy `app.yaml` file by running: {{{ -cp app/app.yaml.template app/app.yaml +scripts/gen_app_yaml.py fake-application-name }}} -Then, edit the newly-created `app.yaml` file with your favorite editor, changing these -lines: += Running the Code Locally = +You can start the server on your computer by running: {{{ -# TODO(proto): uncomment and supply a Google App Engine application instance -# application: FIXME +thirdparty/google_appengine/dev_appserver.py app }}} -to something like: +You should now be able to see the running server at [http://localhost:8080/] . Congrats! You've got Melange running! -{{{ -application: your-app-engine-name -}}} +(If you want to run on a different port, you can use the `--port` argument. Other arguments are described [http://code.google.com/appengine/docs/thedevwebserver.html here].) -where `your-app-engine-name` is the name of one of your Google App Engine slots (or -just some made-up string if you only want to run the `dev_appserver.py` that comes -with the -[http://code.google.com/appengine/downloads.html Google App Engine SDK]). Don't use '`_`' in the name. If you're a C programmer your instincts might tell you that '`_`' is better than '-' in the name - resist those instincts here. += Running on and Deploying to App Engine's cluster = +If you want to run an instance of Melange on Google's App Engine infrastructure, there are a few more steps to make sure it deploys the right data to the right place. + +== Set the application name == +In `app/app.yaml` there's an application name that in the above steps was set to fake-application-name. After registering an application on Google App Engine, use any text editor to change the line that starts with `application: fake-application-name` to instead read `application: <your-instance-name>` == Building With `scripts/build.sh` == @@ -83,20 +70,7 @@ the bash `find` command. You'll also need to explicitly prefix with `bash` unless you have set up an association between sh and bash. -== Running Locally == - -The Melange web application can be started with this command line (since `thirdparty/google_appengine` is checked into `trunk/` in the Melange SVN repository to make it available for test scripts): - -{{{ -thirdparty/google_appengine/dev_appserver.py app -}}} - -Melange should then be running on [http://localhost:8080/ your workstation on port 8080]. On Windows if you've not got .py associated with the python exe you'll need to prefix the line with `Python`. - -If you want to run Melange on other ports you can use the `--port` argument. For more dev_appserver arguments have a look [http://code.google.com/appengine/docs/thedevwebserver.html here]. - - -== Running on Google App Engine == +== Deploying to Google App Engine == Once you have your application configured correctly and you have executed the `build.sh` script found in the `scripts` folder,