|
|
il y a 1 mois | |
|---|---|---|
| backend | il y a 1 mois | |
| public | il y a 1 mois | |
| src | il y a 1 mois | |
| .gitignore | il y a 1 mois | |
| Caddyfile | il y a 1 mois | |
| README.md | il y a 3 mois | |
| eslint.config.js | il y a 5 mois | |
| index.html | il y a 1 mois | |
| package-lock.json | il y a 1 mois | |
| package.json | il y a 1 mois | |
| vite.config.js | il y a 4 mois |
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