This application was generated with the rails_apps_composer gem provided by the RailsApps Project.
Rails Composer is open source and supported by subscribers. Please join RailsApps to support development of Rails Composer.
Need help? Ask on Stack Overflow with the tag 'railsapps.'
Your application contains diagnostics in the README file. Please provide a copy of the README file when reporting any issues.
If the application doesn’t work as expected, please report an issue and include the diagnostics.
This application requires:
- Ruby 2.1.2
- Rails 4.1.5
Learn more about Installing Rails.
Start by reading through this 6 part guide on setting up the app and environment for deployment of a Rails app on Debian
mkdir clock
cd clock
rbenv local 2.1.2
rails new . -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb
spring rails server
mate .env config/production.rb config/clock.nginx.conf config/secrets.yml config/unicorn_init.sh config/unicorn.rb
rake secret
chmod +x unicorn_init.sh
ssh <server> -l<user>
sudo chgrp oxenserver /etc/nginx/sites-enabled
sudo chmod g+w /etc/nginx/sites-enabled
sudo chgrp oxenserver /etc/init.d
sudo chmod g+w /etc/init.d
sudo service nginx restart
sudo update-rc.d unicorn_clock defaults
When you're ready to deploy
- cap production setup:upload_yml
- cap production deploy
- cap production setup:seed_db
Further deployments
- cap production deploy
Changing something which involves restarting the webserver and application server
- sudo service nginx restart
- /etc/init.d/unicorn_clock restart
####Bower package management Bower is a Javascript package manager and to use it with Rails follow this guide: http://blog.revealinghour.in/rails/2014/05/15/bower-and-rails/
Important commands are:
- bower search
- bower info
- bower install # --save
- when building email - check email fun with Rails
- when designing forms - remember about satisficing
mkdir cd rbenv local 2.1.2 rails new . -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb mate . <edit config/deploy.rb> <edit config/deploy/production.rb> <add config/.nginx.conf
spring rails server
20-01-15 - how to collect correct group of entrances in one scoop - https://groups.google.com/d/msg/rubyonrails-talk/kHYW5cid11A/30jBs25zl84J