Updated readme and made deploy script
This commit is contained in:
@ -34,4 +34,5 @@ DB_HOST=localhost
|
||||
DB_USER=username
|
||||
DB_PASS=password
|
||||
DB_NAME=database
|
||||
DISCORD_WEBHOOK_URL=your_webhook_url
|
||||
DISCORD_WEBHOOK_URL=your_webhook_url
|
||||
```
|
||||
15
deploy.sh
Executable file
15
deploy.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "Deploying tinker_tickets to web server..."
|
||||
|
||||
# Deploy to web server
|
||||
echo "Syncing to web server (10.10.10.45)..."
|
||||
rsync -avz --delete --exclude='.git' --exclude='deploy.sh' --exclude='.env' ./ root@10.10.10.45:/var/www/html/tinkertickets/
|
||||
|
||||
# Set proper permissions on the web server
|
||||
echo "Setting proper file permissions..."
|
||||
ssh root@10.10.10.45 "chown -R www-data:www-data /var/www/html/tinkertickets && find /var/www/html/tinkertickets -type f -exec chmod 644 {} \; && find /var/www/html/tinkertickets -type d -exec chmod 755 {} \;"
|
||||
|
||||
echo "Deployment to web server complete!"
|
||||
echo "Don't forget to commit and push your changes via VS Code when ready."
|
||||
Reference in New Issue
Block a user