Production

While the ./flitter provides a command to start the Flitter server, it's recommended that you use the index.js file to start the production server. This file will start the Flitter server and can be started by running:

node index.js

This is especially helpful for running Flitter as a service, like with systemd:

[Unit]
Description=MyApp - my app built on Flitter
Documentation=http://app.url/
After=network.target

[Service]
Type=simple
User=flitter-user
WorkingDirectory=/path/to/flitter
ExecStart=/usr/bin/env node /path/to/flitter/index.js
Restart=on-failure

[Install]
WantedBy=multi-user.target
No Comments
Back to top