In case you are not familiar with Laravel Envoy, this is a short description from Laravel doc:
Laravel Envoy provides a clean, minimal syntax for defining common tasks you run on your remote servers. Using Blade style syntax, you can easily setup tasks for deployment, Artisan commands, and more. Currently, Envoy only supports the Mac and Linux operating systems.
After several Laravel 5.x projects, I decided an Envoy deployment script that works for most of my needs. It is based on Gitlab CI Laravel example that uses rolling deployment pattern (using symbolic links) to minimize downtime. Assuming some of you may have similar needs, I decided to publish it in my Github Gist and write some explanation in this post.
My script requires some prerequisites below. If you can not fulfill one or more of these, you may need to change some parts. Prerequisites:
index.php
and public assets) directories are available on serversudo
(eg. chown
to www-data
, ln
in /var/www
, rm
www-data
files)www-data
user. Otherwise you need to change every www-data
occurrence in the scriptgit clone
manually from the target serverAdditionally, you can uncomment some optional parts to have these features:
In case you missed, these are the links to the source:
Getting verified SSL information with Python (3.x) is very easy. Code examples for it are…
By default, Spring Data Couchbase implements single-bucket configuration. In this default implementation, all POJO (Plain…
Last year, Google released Firebase Auth Emulator as a new component in Firebase Emulator. In…
One of the authentication protocol that is supported by most of Google Cloud services is…
If you need to to add a spatial information querying in your application, PostGIS is…
Amazon Web Service Transcribe provides API to automatically convert an audio speech file (mp3/wav) into…
View Comments
Thanks for sharing information. keep sharing