Pulled out the scripts/build.sh instructions into a separate section, because build.sh needs to be run to zip up tiny_mce even when running locally with dev_appserver.py pointed at the app/ directory. git-svn-id: http://soc.googlecode.com/svn/wiki@1810 5fae56a1-394a-0410-ba46-5107137fd53f
diff --git a/GettingStarted.wiki b/GettingStarted.wiki index fb01675..28a82cf 100644 --- a/GettingStarted.wiki +++ b/GettingStarted.wiki
@@ -54,7 +54,36 @@ 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 Locally== +== Building With `scripts/build.sh` == + +Because +[http://code.google.com/p/soc/source/browse/#svn/trunk/app/tiny_mce Tiny MCE] +(and possibly some other third-party content and JavaScript incorporated +into Melange) is large, +[http://code.google.com/p/googleappengine/source/browse/#svn/trunk/google/appengine/ext/zipserve zipserve] +is used to combine this content into `.zip` archive files (to avoid +file-count limits in Google App Engine). A side effect of this is that, +for Tiny MCE to work in the `textarea` controls on your local working copy, +launched with `thirdparty/google_appengine`, you still need to run a build script +to produce these <tt>.zip</tt> files at least once. + +To do this, you will need to execute the `build.sh` script found in the +`scripts` folder. On a UNIX system, in the `trunk/` directory of the working +copy, using shell commands, this can be done with something like: + +{{{ +cd scripts/ +./build.sh +}}} + +This script will create a `build/` directory at the same level as the +`app/` directory (and the `scripts/` directory) in the `svn` working copy. +If you are using Windows, you will need to have Cygwin, and have it on your +path _before_ system binaries as the Windows `find` command conflicts with +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): @@ -67,21 +96,12 @@ 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 GAE== +== Running on GAE == -Once you have your application configured correctly, you will need -to execute the `build.sh` script found in the `scripts` -folder. On a UNIX system, in the `trunk/` directory of the working -copy, using shell commands, this can be done with something like: - -{{{ -cd scripts/ -./build.sh -}}} - -This script will create a `build/` directory at the same -level as the `app/` directory (and the `scripts/` directory) in the -`svn` working copy. If you're using Windows, you'll need to have Cygwin, and have it on your path _before_ system binaries as the windows `find` command conflicts with the bash `find` command. You'll also need to explicitly prefix with `bash` unless you have set up an association between sh and bash. +Once you have your application configured correctly and you have +executed the `build.sh` script found in the `scripts` folder, +you are ready to deploy your Melange image to your specific Google +App Engine instance. You can run the contents of the `build/` directory, in order to test what would actually be uploaded by `appcfg.py upload` @@ -91,6 +111,12 @@ thirdparty/google_appengine/dev_appserver.py build }}} +Once you are satisfied that `build/` contains everything needed, you can deploy +to your Google App Engine instance with: + +{{{ +thirdparty/google_appengine/appcfg.py update build +}}} = Contributing =