You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This guide explains how to deploy the Vision Node.js application on a Linux server using a dedicated user and a systemd service to ensure it runs persistently and starts automatically on boot.
# π Step 1: Move Project to Server# On your local machine
scp -r vision user@server_ip:path
# π¦ Step 2: Move Project to /projects# On the server
mv path/vision /projects/
# π€ Step 3: Create a New User
adduser vision
# π Step 4: Set Ownership and Permissions
chown -R vision:vision /projects/vision/
chmod -R 750 /projects/vision/
# π Step 5: Install Node.js Dependenciescd /projects/vision/
su vision
npm install
exit# βοΈ Step 6: Create systemd Service File
sudo vi /lib/systemd/system/vision.service
```ini[Service]Type=simpleUser=visionWorkingDirectory=/projects/vision/ExecStart=npm run start -- --port=3000Restart=on-failure# π Step 7: Enable and Start the ServiceReload systemd to regconize changessudo systemctl daemon-reloadStart the Vision appsudo systemctl start visionEnable it to start on bootsudo systemctl enable visionCheck statussudo systemctl status vision