16 lines
254 B
Bash
16 lines
254 B
Bash
#!/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 |