7472370f3bea670f78e6cb27e9b47939d78d8833
wiki/amazon-ec2.md
| ... | ... | @@ -239,7 +239,7 @@ Starting a test is as easy as starting up a new instance. Just make sure that yo |
| 239 | 239 | |
| 240 | 240 | ### Build, deploy, start and stop an instance |
| 241 | 241 | |
| 242 | -Log on to the instance using ssh as user `sailing`. Change to the `~/code` directory and fetch the latest git branch, e.g., using `git fetch origin; git merge origin/master`. You can then trigger a build. It may be a good idea to do this in a `tmux` session because this will allow you to log off or get disconnected while the build is running. To start a tmux session, simply enter the command `tmux` at the console and you will get a new tmux session. Check the man page of tmux for more details and note that the usual Ctrl-B shortcut has been redefined in our instances to Ctrl-A to mimic the behavior of the old `screen` tool we used before we switched to tmux. Suffice it to say that you can detach from the tmux session by pressing `Ctrl-A d` which will keep the session running. To reconnect, enter `tmux attach` which works as long as you only have one tmux session running. In other cases, refer to the tmux man page again. |
|
| 242 | +Log on to the instance using ssh as user `sailing`. Change to the `~/code` directory and fetch the latest git branch, e.g., using `git fetch origin; git merge origin/master`. Make sure you have a MongoDB instance running on the default port 27017 (see [#Access-MongoDB-database]). You can then trigger a build. It may be a good idea to do this in a `tmux` session because this will allow you to log off or get disconnected while the build is running. To start a tmux session, simply enter the command `tmux` at the console and you will get a new tmux session. Check the man page of tmux for more details and note that the usual Ctrl-B shortcut has been redefined in our instances to Ctrl-A to mimic the behavior of the old `screen` tool we used before we switched to tmux. Suffice it to say that you can detach from the tmux session by pressing `Ctrl-A d` which will keep the session running. To reconnect, enter `tmux attach` which works as long as you only have one tmux session running. In other cases, refer to the tmux man page again. |
|
| 243 | 243 | |
| 244 | 244 | To launch the build, enter `configuration/buildAndUpdateProduct.sh build` as usual. Used without options, the build script will tell the options available. After the build has completed, use `configuration/buildAndUpdateProduct.sh -s server install` to install the product to ~/servers/server. |
| 245 | 245 | |
| ... | ... | @@ -265,6 +265,8 @@ Amazon ELB is designed to handle unlimited concurrent requests per second with |
| 265 | 265 | |
| 266 | 266 | ### Access MongoDB database |
| 267 | 267 | |
| 268 | +To launch a local MongoDB instance on the default port, enter a command such as `mkdir /home/sailing/mongodb; /opt/mongodb-linux-x86_64-1.8.1/bin/mongod --dbpath /home/sailing/mongodb`. To make sure the process survives log-off, you may want to launch it in a tmux session. See above for how to create a tmux session. In an existing tmux session, a new window can be created using `Ctrl-a c`. |
|
| 269 | + |
|
| 268 | 270 | ## Migration Checklist |
| 269 | 271 | |
| 270 | 272 | ### Before switching sapsailing.com to the EC2 webserver |