Fix deployment documentation and scripts for TypeScript setup
- Update deployment instructions to properly compile TypeScript - Fix systemd service to run dist/server.js instead of server.js - Standardize on /opt/icewatch as installation directory - Change icewatch user to have bash shell for easier management - Add explicit database creation steps - Create quick deployment guide for simplified setup - Update README with corrected deployment steps - Fix all references from various names to consistent 'icewatch' This ensures the /table route and all TypeScript features work correctly after deployment by running the compiled JavaScript output. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c13b61cd03
commit
84b0fe9e93
4 changed files with 235 additions and 38 deletions
|
@ -1,5 +1,5 @@
|
|||
[Unit]
|
||||
Description=ICE Watch Michigan - Community Safety Tool
|
||||
Description=Great Lakes Ice Report - Community Safety Tool
|
||||
After=network.target
|
||||
Wants=network.target
|
||||
|
||||
|
@ -8,7 +8,7 @@ Type=simple
|
|||
User=icewatch
|
||||
Group=icewatch
|
||||
WorkingDirectory=/opt/icewatch
|
||||
ExecStart=/usr/bin/node server.js
|
||||
ExecStart=/usr/bin/node dist/server.js
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
Environment=NODE_ENV=production
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue