0
Answered

Setting up a Ghost Blog (Production mode) in Ajenti

Roland Ng 10 years ago updated 10 years ago 2
Hi,

I have successfully set up Ghost blog in ajenti (script name = index.js), but having problems configuring it to start in production mode.

After checking the ghost documents ( http://docs.ghost.org/usage/configuration/ )
i realized i need to start it as
NODE_ENV=production node index.js
instead of what is automatically configured in ajenti (node index.js)

I could manually change the settings in superviord, but it keeps getting overwritten when i make updates to my websites. How can i make the change permanent ?

Answer

Answer
Answered
Hi Roland,

I've published an update that adds Environment setting to Node.js content. You should be able to simply paste NODE_ENV=production there.
Answer
Answered
Hi Roland,

I've published an update that adds Environment setting to Node.js content. You should be able to simply paste NODE_ENV=production there.
Thanks! It is working great now.

I am very impressed!