Documentation

Deployment

Run Landing Page

Install Node.js

sudo apt update
sudo apt install nodejs
sudo apt install npm

Verify installation

node -v
npm -v

Let's test the runtime

cd /var/www/apps/shipdotnet-landing-page
node index.js

Install pm2 to keep our nodejs app alive

sudo npm install pm2 -g

Now let's run it as service using pm2

pm2 start "node index.js" --name "shipdotnet-landing-page" --interpreter none -- --port 3000
pm2 save

Verify:

curl http://localhost:3000
<!doctype html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<link rel="icon" href="./favicon.png" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<link href="./_app/immutable/assets/0.DbJhB-dd.css" rel="stylesheet">
	</head>


...

We are done! 👏