{"id":27151,"date":"2018-06-15T04:22:39","date_gmt":"2018-06-15T09:22:39","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=27151"},"modified":"2022-06-03T03:34:55","modified_gmt":"2022-06-03T08:34:55","slug":"how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/","title":{"rendered":"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-27160\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg\" alt=\"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04\" width=\"742\" height=\"371\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>Laravel is a popular, open-source PHP web application framework. It has an expressive, elegant syntax and provides tools needed for large, robust applications. Deployer is a modular open-source PHP deployment tool packed with time-saving features and optimizations. It supports deployment of many popular frameworks, including Laravel, Symfony, Zend Framework and CodeIgniter. In this tutorial, we will show you how to deploy a <a href=\"https:\/\/www.rosehosting.com\/laravel-hosting.html\">Laravel application<\/a> with Deployer on Ubuntu 16.04.<!--more--><\/p>\n<p><!-- more --><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f247c431727\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f247c431727\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#Requirements\" >Requirements<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#Setting-up-the-Local-Development-Environment\" >Setting up the Local Development Environment<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#Install-and-configure-PHP\" >Install and configure PHP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#Install-and-configure-Nginx\" >Install and configure Nginx<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#Create-MySQL-database\" >Create MySQL database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#Create-a-Deployer-User\" >Create a Deployer User<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#Using-Deployer\" >Using Deployer<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Requirements\"><\/span>Requirements<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\">Ubuntu 16.04 server<\/a> with root or sudo access.<\/li>\n<li>Git server. You can either use your own <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-configure-and-use-git-on-an-ubuntu-14-04-lts-vps\/\">self hosted git server<\/a> or any popular Git services such as Gitlab, Github or Bitbucket.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Setting-up-the-Local-Development-Environment\"><\/span>Setting up the Local Development Environment<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You will deploy your Laravel application from your local computer so first you need to setup the local development environment and install Deployer.<\/p>\n<p>First if you already don&#8217;t have composer installed on your local computer install it with:<\/p>\n<pre>curl -sS https:\/\/getcomposer.org\/installer | php\r\nsudo mv composer.phar \/usr\/local\/bin\/composer\r\nchmod +x \/usr\/local\/bin\/composer\r\n<\/pre>\n<p>Next, create a new Laravel project on your local computer:<\/p>\n<pre>composer create-project --prefer-dist laravel\/laravel my-laravel-app\r\n<\/pre>\n<p>To install Deployer on your local computer run the following commands in the console:<\/p>\n<pre>curl -LO https:\/\/deployer.org\/deployer.phar\r\nmv deployer.phar \/usr\/local\/bin\/dep\r\nchmod +x \/usr\/local\/bin\/dep  \r\n<\/pre>\n<p>Finally connect to the git server by adding your local PC ssh key to the git server.<\/p>\n<p>If you don&#8217;t have SSH keys, you can check visit our article about <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-ssh-keys-on-ubuntu-16-04\/\">How To Set Up SSH Keys on Ubuntu 16.04<\/a><\/p>\n<p>If you are using Git hosted service you can check their documentation about how to add SSH key to your account.<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.github.com\/en\/authentication\/connecting-to-github-with-ssh\/adding-a-new-ssh-key-to-your-github-account\">Add SSH keys to GitHub account<\/a><\/li>\n<li><a href=\"https:\/\/docs.gitlab.com\/ee\/user\/ssh.html\">Add SSH keys to GitLab account<\/a><\/li>\n<li><a href=\"https:\/\/confluence.atlassian.com\/bitbucket\/set-up-an-ssh-key-728138079.html\">Add SSH keys to Bitbucket account<\/a><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Install-and-configure-PHP\"><\/span>Install and configure PHP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now that your local development machine is ready before we can start deploying we need to configure the server by installing all thw necessary services.<\/p>\n<p>To install the latest stable version of PHP version 7 and all necessary modules, run:<\/p>\n<pre>sudo apt update\r\nsudo apt install php7.0-fpm php7.0-cli php7.0-gd php7.0-mysql php7.0-mcrypt php-pear php7.0-curl\r\n<\/pre>\n<p>We also need to install composer:<\/p>\n<pre>curl -sS https:\/\/getcomposer.org\/installer | php\r\nsudo mv composer.phar \/usr\/local\/bin\/composer\r\nchmod +x \/usr\/local\/bin\/composer\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Install-and-configure-Nginx\"><\/span>Install and configure Nginx<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Install the latest stable Nginx version from the official Ubuntu repositories:<\/p>\n<pre>sudo apt install nginx<\/pre>\n<p>Next, create a new Nginx server block:<\/p>\n<pre>sudo nano \/etc\/nginx\/sites-available\/my-laravel-app.com<\/pre>\n<pre>server {  \r\n    listen 80;\r\n    server_name my-laravel-app.com;\r\n    root \/var\/www\/html\/my-laravel-app.com\/current\/public;\r\n\r\n    index index.html index.htm index.php;\r\n\r\n    charset utf-8;\r\n\r\n    location \/ {\r\n        try_files $uri $uri\/ \/index.php?$query_string;\r\n    }\r\n\r\n    location = \/favicon.ico { access_log off; log_not_found off; }\r\n    location = \/robots.txt  { access_log off; log_not_found off; }\r\n\r\n    error_page 404 \/index.php;\r\n\r\n    location ~ \\.php$ {\r\n        include snippets\/fastcgi-php.conf;\r\n        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;\r\n        fastcgi_param DOCUMENT_ROOT $realpath_root;\r\n        fastcgi_pass unix:\/run\/php\/php7.0-fpm.sock;\r\n    }\r\n\r\n}\r\n<\/pre>\n<p>Activate the server block by creating a symbolic link:<\/p>\n<pre>sudo ln -s \/etc\/nginx\/sites-available\/my-laravel-app.com \/etc\/nginx\/sites-enabled\/my-laravel-app.com<\/pre>\n<p>Test the Nginx configuration and restart nginx:<\/p>\n<pre>sudo nginx -t\r\nsudo service nginx restart<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Create-MySQL-database\"><\/span>Create MySQL database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you don&#8217;t have MySQL installed you can visit our tutorial about <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-ubuntu-16-04\/\">How to Install MySQL on Ubuntu 16.04<\/a><\/p>\n<p>To create a database for the laravel application, run the following commands:<\/p>\n<pre>mysql -u root -p<\/pre>\n<pre>CREATE DATABASE laravel;\r\nGRANT ALL PRIVILEGES ON laravel.* TO 'laraveluser'@'localhost' IDENTIFIED BY 'your-password';\r\nFLUSH PRIVILEGES;\r\n\\q\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Create-a-Deployer-User\"><\/span>Create a Deployer User<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The main purpose of this user is to deploy our Laravel application by executing commands on our server.<\/p>\n<p>To create the user run the following command:<\/p>\n<pre>sudo adduser deployer<\/pre>\n<p>Both Nginx and PHP FPM are running as a user www-data. The files and directories created by the deployer user must be writable by the www-user.<\/p>\n<p>Run the following command to add the deployer user to the www-data group:<\/p>\n<pre>sudo usermod -aG www-data deployer<\/pre>\n<p>Change the document root ownership by running:<\/p>\n<pre>sudo chown deployer:www-data \/var\/www\/html\/my-laravel-app.com<\/pre>\n<p>and set user group ID<\/p>\n<pre>sudo chmod g+s \/var\/www\/html\/my-laravel-app.com<\/pre>\n<p>With the above command all new files and subdirectories created within the `\/var\/www\/html\/my-laravel-app.com` will inherit the directory group ID.<\/p>\n<p>Add your local user public SSH key to the \/home\/deployer\/.ssh\/authorized_keys file so you can login to the remote sever from your local computer without a password as a user deployer and run the deployment commands.<\/p>\n<p>Finally you need to add the deployer user SSH key to your git server, same as you did with your local computer user.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Using-Deployer\"><\/span>Using Deployer<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Open your local computer terminal and switch over to the laravel project directory.<\/p>\n<pre>cd ~\/my-laravel-app<\/pre>\n<p>Run the following command to create a recipe file named <code>deploy.php<\/code>.<\/p>\n<pre>dep init -t Laravel<\/pre>\n<p>Open the file and configure and set the correct repository credentials and configure the host parameter as follows:<\/p>\n<pre>host('your_remove_server_ip')\r\n    -&gt;user('deployer')\r\n    -&gt;set('deploy_path', '\/var\/www\/html\/my-laravel-app.com');\r\n<\/pre>\n<p>From the inside project directory you can now run the `dep` command to deploy your application.<\/p>\n<p>For more information about how to configure and use Deployer please visit their <a href=\"https:\/\/deployer.org\/docs\/7.x\/getting-started\" target=\"_blank\" rel=\"noopener noreferrer\">documentation page<\/a>.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-27161\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg\" alt=\"Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04\" width=\"170\" height=\"135\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg 170w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04-150x119.jpg 150w\" sizes=\"(max-width: 170px) 100vw, 170px\" \/>Of course, you don\u2019t have to configure your remote server if you use one of our <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\">Blazing-Fast Ubuntu Servers,<\/a> in which case you can simply ask our expert Linux admins to create the deployer user and install and configure all necessary services for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p>PS. If you liked this post, on how to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel is a popular, open-source PHP web application framework. It has an expressive, elegant syntax and provides tools needed for &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#more-27151\" aria-label=\"Read more about How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":27160,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698,1712,1707],"tags":[1720,176],"class_list":["post-27151","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","category-web-frameworks","category-web-servers","tag-deployer","tag-laravel","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04\" \/>\n<meta property=\"og:description\" content=\"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-15T09:22:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:34:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04\",\"datePublished\":\"2018-06-15T09:22:39+00:00\",\"dateModified\":\"2022-06-03T08:34:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\\\/\"},\"wordCount\":713,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg\",\"keywords\":[\"Deployer\",\"laravel\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\",\"Web Frameworks\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\\\/\",\"name\":\"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg\",\"datePublished\":\"2018-06-15T09:22:39+00:00\",\"dateModified\":\"2022-06-03T08:34:55+00:00\",\"description\":\"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg\",\"width\":742,\"height\":371,\"caption\":\"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04 | RoseHosting","description":"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04 | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04","og_description":"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-06-15T09:22:39+00:00","article_modified_time":"2022-06-03T08:34:55+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04","datePublished":"2018-06-15T09:22:39+00:00","dateModified":"2022-06-03T08:34:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/"},"wordCount":713,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg","keywords":["Deployer","laravel"],"articleSection":["Tutorials","Ubuntu","Web Frameworks","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/","name":"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg","datePublished":"2018-06-15T09:22:39+00:00","dateModified":"2022-06-03T08:34:55+00:00","description":"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Automatically-Deploy-Laravel-Applications-with-Deployer-on-Ubuntu-16.04.jpg","width":742,"height":371,"caption":"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-automatically-deploy-laravel-applications-with-deployer-on-ubuntu-16-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Automatically Deploy Laravel Applications with Deployer on Ubuntu 16.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=27151"}],"version-history":[{"count":6,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27151\/revisions"}],"predecessor-version":[{"id":41624,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27151\/revisions\/41624"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/27160"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=27151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=27151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=27151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}