- remove photo option
- date selects through out site
- Settings DB
- Change background
- change number of pics in carousel
- show members of beer club on meeting index
\config\environment\development.rb
ENV["SMTP_FROM"]
ENV["SMTP"]
ENV["SMTP_PORT"]
ENV["SMTP_USERNAME"]
ENV["SMTP_PASSWORD"]
\config\environment\production.rb
ENV["SMTP_FROM"]
ENV["SMTP"]
ENV["SMTP_PORT"]
ENV["SMTP_USERNAME"]
ENV["SMTP_PASSWORD"]
\config\initializers\carrier_wave.rb
ENV['S3_ACCESS_KEY']
ENV['S3_SECRET_KEY']
ENV['S3_BUCKET']
\config\database.yml
ENV['sql_name']
ENV['sql_username']
ENV['sql_password']
ENV['sql_host']
ENV["SECRET_KEY_BASE"]
to create a secret key run
rake secret
config/deploy/production.rb
server 'replace with address'
user: 'user name'
config/deploy.rb
set :application, "beer"
set :repo_url, "git@github.com:wonderphil/beer-cartel.git"
set :deploy_to, "/home/svc_www/apps/#{fetch(:application)}"
set :deploy_user, "svc_www"
set :rbenv_ruby, "2.2.2"
config/nginx.conf
server unix:/tmp/unicorn.beer.sock fail_timeout=0;
server_name www.beer.pdavies.com.au;
return 301 $scheme://beer.phildavies.com.au$request_uri;
server_name beer.pdavies.com.au;
root /home/svc_app/apps/beer/releases/current/public;
config/unicorn.rb
root = "/home/svc_www/apps/beer/current"
listen "/tmp/unicorn.beer.sock"
config/unicorn_init.sh
APP_ROOT=/home/ubuntu/apps/beer/current
AS_USER=ubuntu
- Once all the above config is setup, commit and push changes to git
- Must have a working connection to git from the server
- Must have Env vars setup on server
- Must have DB setup with black database if first deployment
- From local run
- cap production setup:upload_yml
- cap production setup:symlink_config
- cap production deploy
- just for good luck run cap production deploy:restart