diff --git a/README-zh.md b/README-zh.md index 7787452d..e0853fb1 100644 --- a/README-zh.md +++ b/README-zh.md @@ -471,13 +471,13 @@ composer create-project laravel/laravel my-cool-app "5.2.*" 系统默认LaraDock假定Laravel应用在LaraDock的父级目录中 By default LaraDock assumes the Laravel application is living in the parent directory of the laradock folder. -自新Laravel应用在 `my-cool-app` 目录中, 我们需要用 `../my-cool-app/:/var/www/laravel`替换 `../:/var/www/laravel` , 如下: +自新Laravel应用在 `my-cool-app` 目录中, 我们需要用 `../my-cool-app/:/var/www`替换 `../:/var/www` , 如下: ```yaml application: build: ./application volumes: - - ../my-cool-app/:/var/www/laravel + - ../my-cool-app/:/var/www ``` 4 - 进入目录下继续工作.. diff --git a/README.md b/README.md index 8a1ea1e4..4d0b3ec7 100644 --- a/README.md +++ b/README.md @@ -794,13 +794,13 @@ For more about the Laravel installation click [here](https://laravel.com/docs/ma By default LaraDock assumes the Laravel application is living in the parent directory of the laradock folder. -Since the new Laravel application is in the `my-cool-app` folder, we need to replace `../:/var/www/laravel` with `../my-cool-app/:/var/www/laravel`, as follow: +Since the new Laravel application is in the `my-cool-app` folder, we need to replace `../:/var/www` with `../my-cool-app/:/var/www`, as follow: ```yaml application: build: ./application volumes: - - ../my-cool-app/:/var/www/laravel + - ../my-cool-app/:/var/www ... ``` 4 - Go to that folder and start working.. @@ -1114,7 +1114,7 @@ We also recommend [setting the timezone in Laravel](http://www.camroncade.com/ma You can add your cron jobs to `workspace/crontab/root` after the `php artisan` line. ``` -* * * * * php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1 +* * * * * php /var/www/artisan schedule:run >> /dev/null 2>&1 # Custom cron * * * * * root echo "Every Minute" > /var/log/cron.log 2>&1 diff --git a/_guides/digital_ocean.md b/_guides/digital_ocean.md index 0ff32ffd..7a37ade8 100644 --- a/_guides/digital_ocean.md +++ b/_guides/digital_ocean.md @@ -58,10 +58,10 @@ docker-compose exec workspace bash #### Install laravel Dependencies, Add .env , generate Key and give proper permission certain folder ``` -$ root@0e77851d27d3:/var/www/laravel# composer install -$ root@0e77851d27d3:/var/www/laravel# cp .env.example .env -$ root@0e77851d27d3:/var/www/laravel# php artisan key:generate -$ root@0e77851d27d3:/var/www/laravel# exit +$ root@0e77851d27d3:/var/www# composer install +$ root@0e77851d27d3:/var/www# cp .env.example .env +$ root@0e77851d27d3:/var/www# php artisan key:generate +$ root@0e77851d27d3:/var/www# exit $root@midascode:~/laravel/laradock# cd .. $root@midascode:~/laravel# sudo chmod -R 777 storage bootstrap/cache ``` @@ -141,13 +141,13 @@ Remove 0.0.0.0:80 ``` 0.0.0.0:80 -root /var/www/laravel/public +root /var/www/public ``` and replace with your https://yourdomain.com ``` https://yourdomain.com -root /var/www/laravel/public +root /var/www/public ``` uncomment tls