Simple template for Rails 4 based projects
$ git clone git://github.com/droidlabs/irails.git myapp$ cd ./myapp$ cp config/database.yml.example config/database.yml- Configure your config/database.yml
$ bundle install$ rake db:setup
$ brew install ssh-copy-id$ ssh-copy-id username@hostname
- configure config/deploy/staging.rb
$ cap deploy:setup
- deploy with migrations:
$ cap deploy:migrations- connect via ssh:
$ cap ssh- show application logs:
$ cap log- start rails console:
$ cap console- see more
-
Generate data migration
-
$ rails g data_migration generate_user_tokens -
Run data migration
-
$ rake data:migrate
PLEASE DON'T FORGET TO CHANGE ADMIN PASSWORD
- url: yoursite.com/admin
- username: [email protected]
- password: password
Licenced under MIT.
Hope, you'll enjoy iRails!
Cheers, Droid Labs.

