This is maybe the easiest deployment config: A nginx server is at the front, serving static files, and then proxy to app server.
You need a server section in nginx.conf. Notice the root path is pointing to the "share/web" dir under your jifty app dir.:
server {
server_name example.com;
root /path/to/jifty-app/share/web;
location / {
proxy_set_header Host $host;
if (!-f $request_filename) {
proxy_pass http://127.0.0.1:8888;
break;
}
}
}
And the you need to run the server, and keep it running forever:
bin/jifty server
Notice: It is mandatory to have the proxy_set_header line there. Otherwise the url generation in Jifty will produce URLs begin with http://127.0.0.1:8888/