Type ▸ Security Group (Important!!!11!!) ▸ Firewall thingy ▸ Make sure in the same VPC as all other RDS, ElastiCache, etc ▸ Configure Security Group ▸ SSH: 22 ▸ HTTP: 80 ▸ Download and store .pem file. You can’t download it again if you lost it
apt-get update && sudo apt-get -y upgrade ▸ sudo useradd -d /home/deploy -m deploy ▸ sudo passwd deploy ▸ visudo ▸ deploy ALL=(ALL:ALL) ALL ▸ su - deploy ▸ Should run all instructions after this as user deploy
a new user (need to use API key, secret key) ▸ sudo apt-get update ▸ cd ~ ▸ curl https://s3.amazonaws.com/aws-cloudwatch/downloads/latest/ awslogs-agent-setup.py -O ▸ sudo python ./awslogs-agent-setup.py --region ap-southeast-1 ▸ puma_log at /home/deploy/carpit/app/current/log/puma_access.log
current version of Capistrano ▸ set :application, 'carpit' ▸ set :repo_url, '[email protected]:surialabs/carpit-backend.git' ▸ set :branch, ENV['BRANCH'] || 'master' ▸ set :deploy_to, '/home/deploy/carpit/app' ▸ set :rbenv_path, '/home/deploy/.rbenv' ▸ set :rbenv_ruby, '2.3.1' ▸ append :linked_files, 'config/database.yml' ▸ append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', ‘tmp/sockets', 'public/system', 'vendor/bundle' ▸ set :sidekiq_concurrency, 7 ▸ set :sidekiq_options_per_process, ["--queue default --queue quotes"]
are added in Github ▸ Add your own SSH keys in ~/.ssh/authorized_keys to SSH without .pem file ▸ If you want to skip CI (so other people can build their PR), add line —skip-ci in your current branch commit log