From 70e324a6cdade061fce0dce091a182763dbfb340 Mon Sep 17 00:00:00 2001 From: Katja Lutz Date: Fri, 1 Jul 2022 16:49:48 +0200 Subject: [PATCH] feat: version systemd service example --- rappli.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 rappli.service diff --git a/rappli.service b/rappli.service new file mode 100644 index 0000000..aeddf2f --- /dev/null +++ b/rappli.service @@ -0,0 +1,16 @@ +[Unit] +Description=Rappli +After=network.target +Wants=network-online.target + +[Service] +Restart=always +Type=simple +ExecStart=/home/ubuntu/.nvm/nvm-exec npm start +# TODO: Add a script which installs this service and sets the WorkingDirectory and Domain automatically +WorkingDirectory=/home/ubuntu/apps/rappli/ +Environment='DOMAIN=rappli.ch' 'NODE_VERSION=18' +User=ubuntu + +[Install] +WantedBy=multi-user.target \ No newline at end of file