diff --git a/etc/systemd/backend.service b/etc/systemd/backend.service new file mode 100644 index 0000000..5a4827c --- /dev/null +++ b/etc/systemd/backend.service @@ -0,0 +1,14 @@ +[Unit] +Description=backend Service +After=network.target + +[Service] +User=notebrook +WorkingDirectory=/home/notebrook/backend +ExecStart=/usr/bin/npm start +Restart=always +Environment=PATH=/usr/bin:/usr/local/bin +Environment=NODE_ENV=production + +[Install] +WantedBy=multi-user.target diff --git a/etc/systemd/frontend.service b/etc/systemd/frontend.service new file mode 100644 index 0000000..dd4db92 --- /dev/null +++ b/etc/systemd/frontend.service @@ -0,0 +1,14 @@ +[Unit] +Description=frontend Service notebrook +After=network.target + +[Service] +User=notebrook +WorkingDirectory=/home/notebrook/frontend +ExecStart=/usr/bin/npm run dev -- --host +Restart=always +Environment=PATH=/usr/bin:/usr/local/bin +Environment=NODE_ENV=production + +[Install] +WantedBy=multi-user.target