# Devwebs API (without Docker). Install the app in /opt/devwebs, settings in /opt/devwebs/backend/.env. # sudo cp deploy/systemd/*.service /etc/systemd/system/ && sudo systemctl daemon-reload # sudo systemctl enable --now devwebs-api devwebs-worker devwebs-web [Unit] Description=Devwebs API After=network-online.target mysql.service redis-server.service Wants=network-online.target [Service] Type=simple User=devwebs Group=devwebs WorkingDirectory=/opt/devwebs/backend EnvironmentFile=/opt/devwebs/backend/.env Environment=NODE_ENV=production PROCESS_ROLE=api MIGRATE_ON_START=false LOG_FORMAT=json ExecStart=/usr/bin/node dist/server.js Restart=always RestartSec=3 TimeoutStopSec=35 KillSignal=SIGTERM NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true ReadWritePaths=/opt/devwebs/backend/storage [Install] WantedBy=multi-user.target