Recommendations for running in production
There are special considerations to take into account when running Stardust in production. This guide will help you understand the best practices for running Stardust in production.
Process manager
It is recommended to use a process manager to run Stardust in production. You can use something like pm2
or just a systemd service. This will ensure that Stardust is always running and will automatically restart if it crashes.
pm2
To use pm2
, first install it globally:
Then start Stardust with pm2
. You can prepend the port env before the command:
systemd
To use systemd, create a service file at /etc/systemd/system/stardust.service
:
After this, add this to the .gitconfig
of the user the service is running as:
Then reload the systemd daemon and start and enable the service:
Last updated on