Open sounak98 opened 7 years ago
@sounak98
How about executing commands as root?
ssh -o "StrictHostKeyChecking no" <ip-address> "ls -la"
will list the files on the remote machine with ip equal to <ip-address>
The user root's public key on the remote is copied to the file authorized_keys
on the same machine to accomplish this.
This can be applied to all the commands that are executed on the machine hosting resource-generator service.
Set proxy
Add these lines of codes in the
wsgi
file.Give permissions
Give permissions for the root directory.
Some files, specifically
/proc
would fail. This should be fine in general.Set the
HOME
env variableThe user configured for the Apache2 server
www-data
with home folder as/var/www
. This is the default configuration. But it has noHOME
env variable. Add this line of code to set theHOME
env variable inwsgi
file.Changes in
literate-tools
Change these lines in
elisp/publish.el
to
Please make the changes in
literate-tools
@travula