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
22
README.md
22
README.md
|
@ -111,6 +111,10 @@ PORT=3000
|
|||
|
||||
## Deployment
|
||||
|
||||
### Quick Deployment (Recommended)
|
||||
|
||||
See `docs/deployment-quickstart.md` for a simplified deployment guide.
|
||||
|
||||
### Automated Deployment (Debian 12 ARM64)
|
||||
|
||||
1. **Run the deployment script on your server:**
|
||||
|
@ -120,9 +124,11 @@ PORT=3000
|
|||
|
||||
2. **Deploy your application:**
|
||||
```bash
|
||||
git clone git@git.deco.sh:deco/ice.git /opt/ice
|
||||
cd /opt/ice
|
||||
sudo git clone https://github.com/deco/ice.git /opt/icewatch
|
||||
cd /opt/icewatch
|
||||
sudo chown -R $USER:$USER /opt/icewatch
|
||||
npm install # This automatically builds CSS via postinstall
|
||||
npm run build:ts # Compile TypeScript to JavaScript
|
||||
```
|
||||
|
||||
3. **Configure environment:**
|
||||
|
@ -131,10 +137,16 @@ PORT=3000
|
|||
nano .env # Add your API keys
|
||||
```
|
||||
|
||||
4. **Start services:**
|
||||
4. **Create databases and set permissions:**
|
||||
```bash
|
||||
sudo systemctl enable ice
|
||||
sudo systemctl start ice
|
||||
touch icewatch.db profanity.db
|
||||
sudo chown -R icewatch:icewatch /opt/icewatch
|
||||
```
|
||||
|
||||
5. **Start services:**
|
||||
```bash
|
||||
sudo systemctl enable icewatch
|
||||
sudo systemctl start icewatch
|
||||
sudo systemctl enable caddy
|
||||
sudo systemctl start caddy
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue