Terminal (local)
$ ssh -i [The name of the downloaded key].pem ec2-user@[Elastic IP associated with the created EC2 instance]
(Using the downloaded key, ec2-Login as user)
[ec2-user@ip-XXX-XX-XX-XXX <Repository name>]$ bundle exec unicorn_rails -c config/unicorn.rb -E production -D
Terminal (EC2 server)
[ec2-user@ip-XXX-XX-XX-XXX <Repository name>]$ less log/unicorn.stderr.log
Terminal (EC2 server)
:q!
[ec2-user@ip-XXX-XX-XX-XXX <Repository name>]$ ps aux | grep unicorn
$ bundle exec cap production deploy
Recommended Posts