Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thank you for the good explanation! I’m completely new to Laravel and Linux so the tutorial helped me a lot to create a fresh droplet for deploying Laravel. I had just a few minor things to fix:
just a tip for the other rookies - “dep deploy -vvv” is perfect for debugging problems during the execution of the deployer script.
In general the tutorial works out of thex box almost perfectly :)
Thanks for this awesome tutorial…not only does it work, but it helps you understand why we do various things!
Im a noob and it took me longer to figure out how to make npm work…and I’m not convinced it is correct - maybe a future update could be included on how to do that and use it with deployer? That would be awesome.
The only other thing was when I was finished I still hit the default nginx page until I realised I had to get rid of the default server group I set up in the pre-req :)
Thanks again!
Hi sir,
how to restart php7.2-fpm service if the user deployer had no sudo access?
At the very end when I run ‘dep deploy’ this gives me the error:
PHP Fatal error: require(): Failed opening required ‘recipe/laravel.php’ (include_path=‘phar:///usr/local/bin/dep/bin/…/:.:/usr/local/php5/lib/php’) in /Users/MunnaKhan/www/html/laravel/deploy.php on line 4 PHP Stack trace: PHP 1. {main}() /usr/local/bin/dep:0 PHP 2. require() /usr/local/bin/dep:4 PHP 3. Deployer\Deployer::run() phar:///usr/local/bin/dep/bin/dep:119 PHP 4. call_user_func:{phar:///usr/local/bin/dep/src/Deployer.php:326}() phar:///usr/local/bin/dep/src/Deployer.php:326 PHP 5. Deployer\Deployer::Deployer{closure}() phar:///usr/local/bin/dep/src/Deployer.php:326 PHP 6. require() phar:///usr/local/bin/dep/src/Deployer.php:325
Fatal error: require(): Failed opening required ‘recipe/laravel.php’ (include_path=‘phar:///usr/local/bin/dep/bin/…/:.:/usr/local/php5/lib/php’) in /Users/MunnaKhan/www/html/laravel/deploy.php on line 4
Call Stack: 0.0020 352120 1. {main}() /usr/local/bin/dep:0 0.0106 533056 2. require(‘phar:///usr/local/bin/dep/bin/dep’) /usr/local/bin/dep:4 0.0243 2000312 3. Deployer\Deployer::run() phar:///usr/local/bin/dep/bin/dep:119 0.0331 2646736 4. call_user_func:{phar:///usr/local/bin/dep/src/Deployer.php:326}() phar:///usr/local/bin/dep/src/Deployer.php:326 0.0331 2646736 5. Deployer\Deployer::Deployer{closure}() phar:///usr/local/bin/dep/src/Deployer.php:326 0.0337 2653072 6. require(‘/Users/MunnaKhan/www/html/laravel/deploy.php’) phar:///usr/local/bin/dep/src/Deployer.php:325
Hi,
First I followed the How To Install Linux, Nginx, MySQL, PHP (LEMP stack) in Ubuntu 16.04 tutorial. After this tutorial I see the ‘Welcome to nginx’ page when I visit the public IP address of my droplet. Then I followed this tutorial, but I think that I haven’t configured the nginx server correctly. I cannot see the Laravel page when I visit my public IP address, and instead I still see the ‘Welcome to nginx’ page. Does someone know how to configure this correctly?
I’m really lost. I’ve done the necessary steps to download Deployer but I keep getting
-bash: dep: command not found
I get this error on the final section when running dep deploy
In Client.php line 99:
The command "/usr/bin/php /var/www/html/cbdapp/releases/2/artisan migrate --force" failed.
Exit Code: 1 (General error)
Host Name: ukcannabisclinicportal.co.uk
================
mux_client_request_session: read from master failed: Connection reset by peer
ControlSocket /c/Users/thoma/.ssh/deployer_deployer@ukcannabisclinicportal.co.uk already exists, disabling multiple
xing
No matter what I do on my Droplet I still get the dreaded error:
ssh: connect to host mygitserver.com port 22: Network is unreachable
I’ve tried the following:
https://www.digitalocean.com/community/questions/ssh-not-working
https://www.digitalocean.com/community/questions/how-to-access-port-22-if-isp-has-blocked-port-22
Please let me know how I can open Port 22 on my Droplet in order to connect to Github.
I also setup a ~/.ssh/config like we did locally (otherwise I don’t know how my droplet would know what mygitserver.com even is), but that wasn’t covered for the droplet server just locally. Was I supposed to do that?
$ code ssh -vT git@mygitserver.com
OpenSSH_7.6p1 Ubuntu-4ubuntu0.1, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to mygitserver.com [5.196.92.47] port 22.
debug1: connect to address 5.196.92.47 port 22: Connection refused
debug1: Connecting to mygitserver.com [2001:41d0:a:7b2f::] port 22.
debug1: connect to address 2001:41d0:a:7b2f:: port 22: Network is unreachable
ssh: connect to host mygitserver.com port 22: Network is unreachable
Thanks!
I’m using APACHE2 not nginx, so is there anything I need to do configure it on apache?
Also it keeps asking me for the ssh password after every line like so:
< mux_client_request_session: read from master failed: Connection reset by peer < ControlSocket /c/Users/usr/.ssh/deployer_deployer@ip already exists, disabling multiplexing < bash
if [ ! -d /var/www/name ]; then mkdir -p /var/www/name; fi < mux_client_request_session: read from master failed: Connection reset by peer < ControlSocket /c/Users/usr/.ssh/deployer_deployer@ip already exists, disabling multiplexing
Also I get this error:
In Client.php line 99:
[Deployer\Exception\RuntimeException (128)] The command “cd /var/www/name && (/usr/bin/git clone -b master --recursive git@gitlab.com:K dR/th.git /var/www/name/releases/1 2>&1)” failed.
Exit Code: 128 (Invalid exit argument)
Host Name: xxx.xxx.xxx.xxx