To start the Flitter server in development or production, run the index.js
file provided in the application:
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