Install Ghost with nodejs at Infomaniak

Hébergement Node.js - Déployez vos applications et projets avec Node.js
Lancez vos projets Node.js avec service managé souverain, rapide et sécurisé qui simplifie la gestion de vos applicatifs. Testez gratuitement pendant 30 jours.
Ghost: The best open source blog & newsletter platform
Beautiful, modern publishing with email newsletters and paid subscriptions built-in. Used by Platformer, 404Media, Lever News, Tangle, The Browser, and thousands more.

Create nodejs website

Once you have a hosting plan, you can go and create a nodejs website.
Choose a domain or subdomain name and you go

Create a database

On your hosting dashboard click on the "Database" menu item

There, create a database and dedicated user with read/write/admin rights and note down the credentials for later

SSH user

Then, click on the "FTP / SSH" menu item

click "Add a new user" and chose the "Node.js" environment, choose a username and password

when done, note carefuly the username and password.

Connect to the hosting via ssh

You can use the ssh user you just created and copy the hostname to connect to from the "FTP / SSH" dashboard, or click on the "SSH Console" link there to open a web terminal

install ghost-cli

go to the website directory (something like ~/sites/your.subdomain.com) and empty that directory

configure your ghost site

you will need a working email account for your site to be able to send emails, like for password recovery and all

Run this command and answer to questions about database host and website url

npx -p ghost-cli ghost install

update config for email and port

Edit the file config.production.json to update those paremeters:

port and host

  "server": {
    "port": 3000,
    "host": "0.0.0.0"
  },

mail settings, by adjusting <<email_username>> <<email_password>> and <<email_address>>

  "mail": {
    "transport": "SMTP",
    "options": {
      "service": "Infomaniak",
      "host": "mail.infomaniak.com",
      "port": 465,
      "auth": {
        "user": "<<email_username>>",
        "pass": "<<email_password>>"
      }
    },
    "from": "<<email_address>>"
  },

Setup application parameters in dashboard

Go to your site dashboard in Infomaniak admin pannel, click on "Manage" next to "Advanced settings"

From there, go to the "Node.js" tab,

At the "Execution command for your Node.js application" form, use this:

npx -p ghost-cli ghost run

and click "save"

Start the application

In the "Application management" section, click "Restart" or "Start"

Watch the logs showing the database creation and application startup

Staff user

Once installed, navigate to your new website adding /ghost in the URL

like https://your.subdomain.com becomes https://your.subdomain.com/ghost and follow the instructions to create your first staff user

Done !

Done, your ghost site is up, enjoy