git my localhost on the web (PaaS)
Opened this issue · 6 comments
Jean-alien commented
identify a PasS ==> render.com
Jean-alien commented
sign into Render w/github credential
start new Web Service
connect to GitHub Repo
give it a unique name (unique on web, not unique to just your acc't like github) mine: icecold-polar-render
pick what branch to deploy from. I chose iss3.
Web Server Settings:
Runtime = Node
Build Command = npm
Start Command = node app.js
"Create Web Service" big purple button --> create web
Jean-alien commented
Refactor with port binding
link url: https://docs.render.com/web-services
const express = require('express')
const app = express()
const port = process.env.PORT || 5500;
app.get('/', (req, res) => {
res.send('Hello World from Express')
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
Jean-alien commented
Jean-alien commented
Jean-alien commented
Jean-alien commented