Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bushblade/node-handlebars-server
A static replacement for my apache server
https://github.com/bushblade/node-handlebars-server
Last synced: about 12 hours ago
JSON representation
A static replacement for my apache server
- Host: GitHub
- URL: https://github.com/bushblade/node-handlebars-server
- Owner: bushblade
- Created: 2018-06-10T18:33:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T05:03:05.000Z (almost 2 years ago)
- Last Synced: 2023-03-05T08:50:44.235Z (over 1 year ago)
- Language: HTML
- Size: 213 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## My server written with handlebars
To run the server node needs permission to run on port 80. Do not run as root instead use:-
```
sudo setcap cap_net_bind_service=+ep /bin/node
```The app is running with [pm2](http://pm2.keymetrics.io/)
HTTPS is provided through using [greenlock-express](https://www.npmjs.com/package/greenlock-express)
Start the server
```
pm2 start server.js
```Set pm2 to restart the app after a reboot
```
pm2 startup
```