Server Tasks
Evolve comes with some predefined Laravel Envoy tasks to run on your remote server.
Import Evolve's Envoy tasks
INFO
You can skip this step if you created a new project with the Evolve Starter Kit.
Before running Evolve's custom Envoy tasks you'll need to create an Envoy.blade.php file in your project root directory with following line of content:
blade
@import('vendor/racerfish/evolve/core/bin/Envoy.blade.php')Available tasks
TIP
It's recommended to create a bash alias for convenience: alias envoy="php vendor/bin/envoy"
bash
# Download all media from the server
envoy run media:down
# Upload all local media to the server
envoy run media:up
# Download the database from the server
envoy run database:down
# Upload the local database to the server
envoy run database:up
# Download the .env file from the server
envoy run env:down
# Upload the local .env.[server]-[target] file to the server
envoy run env:up
# Show the current .env file on the server
envoy run server:env
# Run migrations on the server (with --force flag)
envoy run server:migrate
# Clear and rebuild all caches and compiled files on the server
envoy run server:clean
# Compare a local file to the file on the server
envoy run server:diff --file=path/to/file.txt