Requirements: (tested versions appear in parentheses)
- unix (OS X 10.6.8, OS X 10.8.2, Fedora 18, Ubuntu 12.10)
- node (v0.10.4)
- npm (1.2.11)
- node-gyp (v0.8.4)
- redis (2.6.12)
- gcc (4.7.2)
- GNU Wget (1.14)
Installation Instructions:
- open a terminal
git clone --recurse-submodules [email protected]:CarletonU-COMP2406-W2013/Steamed-Pears.git CodeReview
- cd into
CodeReview
- Run
bin/install_server.sh
This will clone the project into a folder and initialize its git submodules.
Usage Instructions:
- cd into CodeReview, the root directory of the project.
- Run
bin/start.sh
Now you should be able to access the server running on localhost:8080.
If you would like to stop the server, follow the above instructions but instead run bin/stop.sh as the final step.
If you would like to restart the server, simply run bin/start.sh again.
If something has gone horribly wrong, follow the above instructions but instead run bin/reset_dev.sh as the final step. WARNING!!! This will destroy your development database and delete the locally installed npm modules. This is the best way to bring your installation back to a known state, but you will lose all the data in your copy of the application.
Requirements:
- unix (Server uses CentOS release 5.8 (Final))
- node (Server uses v0.10.4)
- nginx (Server uses ??)
- Redis (Server uses 2.6.12)
Instructions:
(Assuming ssh'd into server, pulled latest repo and reading this.)
- cd to root directory (CodeReview)
- Be sure to copy the client files into your static http folder.
- Run
bin/install_server.sh
- Run
bin/build_production_all.sh
- Run
bin/start.sh --prod
Note that for steps 3 and 5 you may specify a PREFIX which is a prefix
for installing files. For example, binary executables will be
installed in $PREFIX/bin
e.g. PREFIX="/home/steamed-pears" bin/install_server.sh
Note that for steps 3 and 4 you may specify a TMPDIR (or whatever your
copy of mktemp
uses) in which to store temporary files.
e.g. TMPDIR="/home/steamed-pears/tmp" bin/install_server.sh
Note that for step 4 you may specify a TARGET which is where the
production files will be built.
e.g. TARGET="~/webapps/cr_front" bin/build_production_all.sh
Note that compiling Redis (in step 3) may fail with old versions of gcc (we found it with gcc 4.1). To fix this, run
$ export CFLAGS=-march=i686
and try again.
vim: set softtabstop=2 shiftwidth=2 tabstop=8 expandtab textwidth=80: