lojinha
lojinha copied to clipboard
create script to make the initial deployment of the system
the script should:
- configure the instance to have some swap memory (if an aws micro), like in: http://vidageek.net/2007/08/22/gerando-memoria-swap-on-the-fly/
- install javac?
- download play framework
- configure .bashrc with PLAY_HOME and update the PATH properly (actually, downloading / installing only sbt should be enough)
- download the source of the project (lojinha) from git
- add the analytics script in the index.scala.html file
- add the proper configuration in the secret.conf file
- use the play command to generate the application
- start the application
Assuming: a database is already configured and ready to be used (perhaps the script should do this as well?).
Perhaps Chef or Puppet should be taken into account before writing this script...