Simple express server with integrated deployment
You need to:
- Change the package name
- Update the
.github/workflows/deploy.yml
file:- Create the
HOST
,USERNAME
,PORT
andPASSWORD
secrets - Replace
remote-path
with your remote path - Replace
pm2-id
with the name or ID of the deployed project
- Create the
Make sure to run npm install
locally and push the changes to generate the package-lock.json.
Why I haven't created a
package-lock.json
myself?Because some packages that express depends on may be updated in a future and the deployment runs
npm ci