In addition to the application's Readme.md, here are some useful tips.
The application creates a new user with limited rights: it can connect (with a password) through SFTP to access the /var/www/my_webapp
directory (or /var/www/my_webapp__<number>
if there are several installations of this application).
This configuration requires updating the site content manually, with a password connection.
If you want to automate things, you need to be able to connect without typing a password (i.e. "non-interactive"). Here are the steps to follow to get there:
/etc/ssh/sshd_config
, on the server/var/www/my_webapp(__#)/.ssh/authorized_keys
my_webapp(__#)
as owner of the authorized_keys
file and www/
directorysftp -b
, lftp
or other SFTP clients.NB: The port number to use for the SFTP connection is the one used for the SSH, and configured in /etc/ssh/sshd_config
.
This tip allows you to automatically update your site. For example, the makefile of the Pelican tool allows you to use make ftp_upload
.
Found errors? Think you can improve this documentation? Simply click the Edit link at the top of the page, and then the icon on Github to suggest changes.
Powered by Grav + with by Trilby Media.