# Systemd Service for Howya # Place this file in: /etc/systemd/system/howya.service # Then run: # sudo systemctl daemon-reload # sudo systemctl enable howya # sudo systemctl start howya [Unit] Description=Howya - Professional Profile Platform Documentation=https://github.com/yourusername/howya After=network.target mysql.service [Service] Type=simple User=www-data WorkingDirectory=/var/www/howya Environment="NODE_ENV=production" Environment="PORT=3000" ExecStart=/usr/bin/npm start Restart=on-failure RestartSec=10 StandardOutput=syslog StandardError=syslog SyslogIdentifier=howya # Security NoNewPrivileges=true PrivateTmp=true ProtectSystem=strict ProtectHome=true ReadWritePaths=/var/www/howya/public/uploads [Install] WantedBy=multi-user.target