Owner: Dev Team | Last Updated: 2026-02-21 | Status: Current
Production deployment configuration using Deployer (deploy.php).
Booking uses Deployer for automated zero-downtime deployments to the production server. The configuration is defined in deploy.php at the project root.
| Setting | Value |
|---|---|
| Repository | git@github.com:bikerentnyc/booking.git |
| Host | 147.182.167.147 |
| User | deployer |
| Deploy Path | /var/www/html/booking |
| Keep Releases | 1 |
Shared files persist across releases and are symlinked into each new release directory.
| Path | Purpose |
|---|---|
public/build |
Compiled frontend assets (Vite output) |
Note: The
public/builddirectory is shared so that frontend assets remain available during deployment and are not lost when old releases are cleaned up.
To deploy to production:
dep deploy
The frontend build task runs during deployment to compile Vue 3 assets with Vite:
npm install && npm run build
After a successful build, node_modules is removed to save disk space on the server:
rm -rf node_modules
The full sequence:
npm install → npm run build → rm -rf node_modules
Note: The compiled assets in
public/buildare preserved as a shared directory, so removingnode_modulesdoes not affect the running application.
A separate task is available to seed initial user data:
dep seed
This runs the UserSeeder to create initial users:
php artisan db:seed --class=UserSeeder
Warning: Only run the seed task on initial setup or when explicitly needed. Running it on an existing database may create duplicate user records.
To rollback to the previous release:
dep rollback
Note: Since
keep_releasesis set to 1, only one previous release is available for rollback.
To connect to the production server manually:
ssh deployer@147.182.167.147
cd /var/www/html/booking/current
The current symlink always points to the active release.
/var/www/html/booking/
current -> releases/1 # Symlink to active release
releases/
1/ # Current release
shared/
public/build/ # Shared frontend assets
| Date | Author | Change |
|---|---|---|
| 2026-02-21 | Documentation Team | Initial creation |
Prev: CI/CD | Next: Monitoring | Up: Deployment