Open barrycumbie opened 9 months ago
sign into render w/github creds
start new Web Service
cxn to GitHub Repo
give it a unique name (unique on web, not unique to just your acc't like github)
pick what branch to deploy from e.g. main or iss3
Runtime = Node
Build Command = npm
Start Command = node app.js
"Create Web Service" big purple button
TODO: Build Command = yarn (not npm)
refactor with port binding
from this docu: https://docs.render.com/web-services#port-detection
const express = require('express')
const app = express()
const port = process.env.PORT || 4000;
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
reset render deploy to this branch
identify a PaaS ==> render.com