- Convert new line char into double new line char
e.g from
\n
to\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-add
if not exists - Allow agent forwarding
On Server
# /etc/ssh/sshd_config AllowAgentForwarding yes
On Client
# /etc/ssh_config file
On 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