Worked (almost) great, thanks 1klap! Yours is one of the better deploy recipes that I've found.
Two things were different for me (on Debian 11):
ln -s /etc/nginx/sites-available/APPNAME /etc/nginx/sites-enabled/APPNAME
(Debian didn't understand the "../" when I was in the $HOME directory)
I had to scp the database.yml and master.key files into the shared/config directory: scp config/database.yml deploy@DOMAIN:APPNAME/shared/config scp config/master.key deploy@DOMAIN:APPNAME/shared/config
Tip: Do not use special characters with Postgresql, especially "_" in the database name and "@" in the user password.
Thanks again!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Worked (almost) great, thanks 1klap! Yours is one of the better deploy recipes that I've found.
Two things were different for me (on Debian 11):
ln -s /etc/nginx/sites-available/APPNAME /etc/nginx/sites-enabled/APPNAME
(Debian didn't understand the "../" when I was in the $HOME directory)
I had to scp the
database.yml
andmaster.key
files into theshared/config
directory:scp config/database.yml deploy@DOMAIN:APPNAME/shared/config
scp config/master.key deploy@DOMAIN:APPNAME/shared/config
Tip: Do not use special characters with Postgresql, especially "_" in the database name and "@" in the user password.
Thanks again!