webhook code for automaticl deployment
This commit is contained in:
16
deploy.sh
Normal file
16
deploy.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Navigate to the project directory
|
||||
cd /path/to/your/project
|
||||
|
||||
# Pull the latest changes
|
||||
git pull
|
||||
|
||||
# Install dependencies
|
||||
npm install
|
||||
|
||||
# Build the project
|
||||
npm run build
|
||||
|
||||
# Optional: Restart your web server if needed
|
||||
# systemctl restart nginx
|
Reference in New Issue
Block a user