I'm new to node and parcel and I'm trying to figure out how to serve a basic web app with parcel on OpalStack.
Here's what I've done so far.
I created a new application of type 'Node.js' on the OpalStack dashboard.
I created a new domain and routed the above application to '/'
.
I created a simple index.html
file in /home/[username]/apps/[appname]
.
% cd /home/[username]/apps/[appname]
% export PATH=$PWD/node/bin:$PATH
% type node
node is /home/[username]/apps/[appname]/node/bin/node
% node --version
v16.16.0
% type npm
npm is /home/[username]/apps/[appname]/node/bin/npm
% npm --version
8.11.0
% npm install --save-dev parcel
…
added 177 packages, and audited 178 packages in 12s
…
% ./stop
Stopped.
% npx parcel build index.html
✨ Built in 557ms
dist/index.html 144 B 334ms
Visiting the root address of my domain in my browser at this point gives a 502 Bad Gateway
error. How do I get the page served?