- Convert new line char into double new line char
e.g from
\nto\n\n - On YAML file, suround it using double quotes
key: "<%= ENV['PRIVATE_KEY'] %>"
- Create deploy user with sudo
/usr/sbin/adduser deploy sudo
- Allow using sudo without password
- Open visudo
sudo visudo - append
deploy ALL=(ALL) NOPASSWD: ALL
- Open visudo
- Setup ssh forwarding
https://dchua.com/2013/08/29/properly-using-ssh-agent-forwarding-in-capistrano/
- Check
ssh-add-L - run
ssh-addif not exists - Allow agent forwarding
On Server
# /etc/ssh/sshd_config AllowAgentForwarding yesOn Client
# /etc/ssh_config fileOn Server
Host * SendEnv LANG LC_* ForwardAgent no yes
- Check
- Install rbenv and ruby's dependencies
Add rbenv path and init BEFORE the interactive shell checks