- Install rbenv (or RVM) and ruby 1.9.3
Running the Production Server
unicorn -p 8081
You can use vagrant to fire up a development VM with all the neccessary dependencies within. You will get a ready to launch environment (rvm, ruby, bundled gems will be deployed via puppet).
vagrant up. Once the VM is running, you can ssh into it via
vagrant ssh. The app and code can be found in
/vagrant, which is shared between your host and the VM.
To finish the development setup, in
padrino rake ar:setup to create, migrate, and seed the database. Then run
padrino s to start a padrino development server on port 3000, which vagrant forwards to your host's port 3000. You can access the new Hacktouch site at
padrino --help inside the
/vagrant directory will tell you good things.
padrino c is handy.