'How to reduce Laravel Vapor Deployment time on Windows 10
Can anyone suggest me how can I reduce the deployment time through laravel Vapor on Windows 10 ?
When I deployed my laravel project on Ubuntu it usually takes around 1-2 minutes, but the similar deployment on Windows 10 takes around 40-45 minutes.
Here is my Vapor.yml file
name: booking-api
environments:
production:
balancer: production
cache: production
cli-memory: 1024
database: production
domain: api.booking.com
firewall:
rate-limit: 100
bot-control:
- CategoryAdvertising
- CategoryArchiver
- CategoryContentFetcher
- CategoryHttpLibrary
- CategoryLinkChecker
- CategoryMiscellaneous
- CategoryMonitoring
- CategoryScrapingFramework
- CategorySecurity
- CategorySeo
- CategorySocialMedia
- CategorySearchEngine
- SignalAutomatedBrowser
- SignalKnownBotDataCenter
memory: 1024
runtime: docker
storage: booking-production-25588
build:
- 'composer install --no-dev'
- 'php artisan event:cache'
# - 'npm ci && npm run prod && rm -rf node_modules'
deploy:
- 'php artisan migrate --force'
staging:
balancer: staging
cache: staging
# concurrency: 50 # how many max requests
cli-memory: 1024
database: staging
domain: staging-api.booking.com
memory: 1024
runtime: docker
storage: booking-staging-25588
timeout: 30
build:
- 'composer install'
- 'php artisan event:cache'
# - 'npm ci && npm run dev && rm -rf node_modules'
deploy:
- 'php artisan migrate'
# - 'php artisan migrate:fresh --drop-views'
# - 'php artisan db:seed'
# - 'php artisan cache:clear'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
