Skip to content

Commit

Permalink
DN-1: Systemctl file for running test derecksnotes.com
Browse files Browse the repository at this point in the history
  • Loading branch information
dereckmezquita committed Apr 29, 2024
1 parent 440bb12 commit a9e3d6e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 0 additions & 16 deletions conf/next-derecksnotes-server.service

This file was deleted.

16 changes: 16 additions & 0 deletions conf/test-derecksnotes-server.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# /etc/systemd/system/test-derecksnotes-server.service
# systemctl restart test-derecksnotes-server.service
# journalctl -u test-derecksnotes-server.service -f
# https://nodesource.com/blog/running-your-node-js-app-with-systemd-part-1/
[Unit]
Description=test-derecksnotes-server.js - runs test subdomain server responses for test.derecksnotes.com
After=network.target

[Service]
Type=simple
User=dereck
ExecStart=/home/dereck/.nvm/versions/node/v20.9.0/bin/node /html/derecksnotes-playground/test-derecksnotes.com/server/dist/index.js
Restart=on-failure

[Install]
WantedBy=multi-user.target

0 comments on commit a9e3d6e

Please sign in to comment.