Skip to main content
Skip to main content
🚧 Work in Progress

FAQ

You can set environment variables through the Zerops dashboard or in your zerops.yml file under the run.envVariables section:

zerops:
- setup: app
run:
envVariables:
APP_KEY: "base64:your-key-here"
DB_CONNECTION: "pgsql"
DB_HOST: ${db_host}

You can run migrations during initialization by adding the command to your zerops.yml:

zerops:
- setup: app
run:
initCommands:
- php artisan migrate --isolated --force

Yes, Laravel Queue is fully supported. Configure Redis as your queue driver:

zerops:
- setup: app
run:
envVariables:
QUEUE_CONNECTION: redis
REDIS_HOST: redis
REDIS_PORT: 6379

Zerops supports S3-compatible storage. Configure it using these environment variables:

zerops:
- setup: app
run:
envVariables:
FILESYSTEM_DISK: s3
AWS_ACCESS_KEY_ID: ${storage_accessKeyId}
AWS_SECRET_ACCESS_KEY: ${storage_secretAccessKey}
AWS_BUCKET: ${storage_bucketName}
AWS_ENDPOINT: ${storage_apiUrl}
AWS_URL: ${storage_apiUrl}/${storage_bucketName}
AWS_USE_PATH_STYLE_ENDPOINT: true

HTTPS is automatically enabled when you use either a Zerops subdomain or configure your custom domain. No additional configuration is required.

Yes, you can configure cron jobs in your zerops.yml:

zerops:
- setup: app
run:
crontab:
- command: "php artisan schedule:run"
timing: "* * * * *"
workingDir: /var/www/html

Configure Redis for caching, sessions, and queues:

zerops:
- setup: app
run:
envVariables:
CACHE_STORE: redis
SESSION_DRIVER: redis
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_CLIENT: phpredis

Add these optimization commands to your initialization:

zerops:
- setup: app
run:
initCommands:
- php artisan view:cache
- php artisan config:cache
- php artisan route:cache
- php artisan optimize

Configure asset compilation in your build phase:

zerops:
- setup: app
build:
base:
- php@8.4
- nodejs@18
buildCommands:
- composer install --optimize-autoloader --no-dev
- npm install
- npm run build
cache:
- vendor
- node_modules

Add health checks to ensure your application is running properly:

zerops:
- setup: app
deploy:
readinessCheck:
httpGet:
port: 80
path: /up
run:
healthCheck:
httpGet:
port: 80
path: /up