Skip to content

Commit 72339b7

Browse files
authored
Update README.md
1 parent dffa7dc commit 72339b7

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

README.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ sudo mv 80 /etc/authbind/byport
6464
An *upstart* script or *systemd* unit file can be created to make sure the web asset server is started
6565
automatically.
6666

67+
It is important that the working directory is set to the path containing `server.py`
68+
so that *bottle.py* can find the template files. See [“TEMPLATE NOT FOUND” IN MOD_WSGI/MOD_PYTHON](http://bottlepy.org/docs/dev/faq.html#template-not-found-in-mod-wsgi-mod-python).
69+
70+
Note: Some users have reported that `authbind` must be provided with the `--deep` option.
71+
If the asset server is failing to start due to permission problems, this may be a solution.
72+
6773
### Upstart
6874
Create the file `/etc/init/web-asset-server.conf` with the following
6975
contents, adjusting the `setuid` user and directories as appropriate:
@@ -82,6 +88,16 @@ exec /usr/bin/authbind /usr/bin/python /home/anhalt/web-asset-server/server.py
8288
respawn
8389
```
8490

91+
Then reload the init config files and start the server:
92+
93+
```
94+
sudo initctl reload-configuration
95+
sudo start web-asset-server
96+
```
97+
98+
By default, the server's logs go to standard output which *upstart* will redirect
99+
to `/var/log/upstart/web-asset-server.log`
100+
85101
### Systemd
86102

87103
Create the file `/etc/systemd/system/web-asset-server.conf` with the following
@@ -98,21 +114,12 @@ WorkingDirectory=/home/specify/web-asset-server
98114
ExecStart=/usr/bin/authbind /usr/bin/python /home/specify/web-asset-server/server.py
99115
```
100116

101-
It is important that the working directory is set to the path containing `server.py`
102-
so that *bottle.py* can find the template files. See [“TEMPLATE NOT FOUND” IN MOD_WSGI/MOD_PYTHON](http://bottlepy.org/docs/dev/faq.html#template-not-found-in-mod-wsgi-mod-python).
103-
104-
Note: Some users have reported that `authbind` must be provided with the `--deep` option.
105-
If the asset server is failing to start due to permission problems, this may be a solution.
106-
107-
Then reload the init config files and start the server:
117+
Tell Systemd to reload its config with
108118

109119
```
110-
sudo initctl reload-configuration
111-
sudo start web-asset-server
120+
sudo systemctl daemon-reload
112121
```
113122

114-
By default, the server's logs go to standard output which *upstart* will redirect
115-
to `/var/log/upstart/web-asset-server.log`
116123

117124
HTTPS
118125
-----

0 commit comments

Comments
 (0)