Commit 1b05dfd1 authored by Mahmoud Zalt's avatar Mahmoud Zalt

replace var/www/laravel with var/www

parent 03bba8d2
...@@ -471,13 +471,13 @@ composer create-project laravel/laravel my-cool-app "5.2.*" ...@@ -471,13 +471,13 @@ composer create-project laravel/laravel my-cool-app "5.2.*"
系统默认LaraDock假定Laravel应用在LaraDock的父级目录中 系统默认LaraDock假定Laravel应用在LaraDock的父级目录中
By default LaraDock assumes the Laravel application is living in the parent directory of the laradock folder. 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 ```yaml
application: application:
build: ./application build: ./application
volumes: volumes:
- ../my-cool-app/:/var/www/laravel - ../my-cool-app/:/var/www
``` ```
4 - 进入目录下继续工作.. 4 - 进入目录下继续工作..
......
...@@ -794,13 +794,13 @@ For more about the Laravel installation click [here](https://laravel.com/docs/ma ...@@ -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. 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 ```yaml
application: application:
build: ./application build: ./application
volumes: volumes:
- ../my-cool-app/:/var/www/laravel - ../my-cool-app/:/var/www
... ...
``` ```
4 - Go to that folder and start working.. 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 ...@@ -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. 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 # Custom cron
* * * * * root echo "Every Minute" > /var/log/cron.log 2>&1 * * * * * root echo "Every Minute" > /var/log/cron.log 2>&1
......
...@@ -58,10 +58,10 @@ docker-compose exec workspace bash ...@@ -58,10 +58,10 @@ docker-compose exec workspace bash
#### Install laravel Dependencies, Add .env , generate Key and give proper permission certain folder #### Install laravel Dependencies, Add .env , generate Key and give proper permission certain folder
``` ```
$ root@0e77851d27d3:/var/www/laravel# composer install $ root@0e77851d27d3:/var/www# composer install
$ root@0e77851d27d3:/var/www/laravel# cp .env.example .env $ root@0e77851d27d3:/var/www# cp .env.example .env
$ root@0e77851d27d3:/var/www/laravel# php artisan key:generate $ root@0e77851d27d3:/var/www# php artisan key:generate
$ root@0e77851d27d3:/var/www/laravel# exit $ root@0e77851d27d3:/var/www# exit
$root@midascode:~/laravel/laradock# cd .. $root@midascode:~/laravel/laradock# cd ..
$root@midascode:~/laravel# sudo chmod -R 777 storage bootstrap/cache $root@midascode:~/laravel# sudo chmod -R 777 storage bootstrap/cache
``` ```
...@@ -141,13 +141,13 @@ Remove 0.0.0.0:80 ...@@ -141,13 +141,13 @@ Remove 0.0.0.0:80
``` ```
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 and replace with your https://yourdomain.com
``` ```
https://yourdomain.com https://yourdomain.com
root /var/www/laravel/public root /var/www/public
``` ```
uncomment tls uncomment tls
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment