You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An *upstart* script or *systemd* unit file can be created to make sure the web asset server is started
65
65
automatically.
66
66
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
+
67
73
### Upstart
68
74
Create the file `/etc/init/web-asset-server.conf` with the following
69
75
contents, adjusting the `setuid` user and directories as appropriate:
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
108
118
109
119
```
110
-
sudo initctl reload-configuration
111
-
sudo start web-asset-server
120
+
sudo systemctl daemon-reload
112
121
```
113
122
114
-
By default, the server's logs go to standard output which *upstart* will redirect
0 commit comments