|
|
1 kuukausi sitten | |
|---|---|---|
| backend | 1 kuukausi sitten | |
| public | 1 kuukausi sitten | |
| src | 1 kuukausi sitten | |
| .gitignore | 1 kuukausi sitten | |
| Caddyfile | 1 kuukausi sitten | |
| README.md | 3 kuukautta sitten | |
| eslint.config.js | 5 kuukautta sitten | |
| index.html | 1 kuukausi sitten | |
| package-lock.json | 1 kuukausi sitten | |
| package.json | 1 kuukausi sitten | |
| vite.config.js | 4 kuukautta sitten |
This is my CMS. Why? Because I can.
Set-up:
install the actual cms page:
npm install
npm run build
install and host backend:
cd backend
npm install
make systemd unit:
[Unit]
Description=Gooneral Wheelchair CMS Backend
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/var/www/gooneral-wheelchair/backend
Environment=NODE_ENV=production
ExecStart=/usr/bin/node start-production.js
Restart=always
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=gooneral-wheelchair
[Install]
WantedBy=multi-user.target
add:
import cock_location/gooneral-wheelchair/Caddyfile
to your caddyfile