Have you already set up systemd, or are you running it standalone to get set up? DoG uses dotenv to load the environment file, and it expects the environment file to be in $PWD/.env. So if you haven’t configured the systemd cwd, it won’t work. Alternatively, you could have a type
“1. Fill in the example, and save to `/lib/systemd/system/discourse_on_ghost.service”
does this mean paste
[Unit]
Description=Discourse on Ghost
Documentation=https://github.vikaspotluri.me/discourse-on-ghost
[Service]
Type=simple
# Don't forget to update this!
WorkingDirectory=/path/to/discourse-on-ghost
# The user might be different for `jwt` mode
User=ghost
Environment="NODE_ENV=production"
# You can get your node path by running `which node`
ExecStart=/path/to/node index.js
Restart=always
[Install]
WantedBy=multi-user.target
into text file and create the directory: /lib/systemd/system/ and save it there?
I just asked someone on Fiverr about doing the install and one said that I can’t get it going with Ghost pro … is this true? Thank you for your generosity answering my questions.
The directory should already exist from my recollection. But yes, you can paste that template, but be sure to update the vields after the comment lines (starting with #)