Skip to content

Commit 1b05dfd

Browse files
committed
replace var/www/laravel with var/www
1 parent 03bba8d commit 1b05dfd

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

README-zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,13 @@ composer create-project laravel/laravel my-cool-app "5.2.*"
471471
系统默认LaraDock假定Laravel应用在LaraDock的父级目录中
472472
By default LaraDock assumes the Laravel application is living in the parent directory of the laradock folder.
473473

474-
自新Laravel应用在 `my-cool-app` 目录中, 我们需要用 `../my-cool-app/:/var/www/laravel`替换 `../:/var/www/laravel` , 如下:
474+
自新Laravel应用在 `my-cool-app` 目录中, 我们需要用 `../my-cool-app/:/var/www`替换 `../:/var/www` , 如下:
475475

476476
```yaml
477477
application:
478478
build: ./application
479479
volumes:
480-
- ../my-cool-app/:/var/www/laravel
480+
- ../my-cool-app/:/var/www
481481
```
482482
4 - 进入目录下继续工作..
483483

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -794,13 +794,13 @@ For more about the Laravel installation click [here](https://laravel.com/docs/ma
794794

795795
By default LaraDock assumes the Laravel application is living in the parent directory of the laradock folder.
796796

797-
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:
797+
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:
798798

799799
```yaml
800800
application:
801801
build: ./application
802802
volumes:
803-
- ../my-cool-app/:/var/www/laravel
803+
- ../my-cool-app/:/var/www
804804
...
805805
```
806806
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
11141114
You can add your cron jobs to `workspace/crontab/root` after the `php artisan` line.
11151115

11161116
```
1117-
* * * * * php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1
1117+
* * * * * php /var/www/artisan schedule:run >> /dev/null 2>&1
11181118
11191119
# Custom cron
11201120
* * * * * root echo "Every Minute" > /var/log/cron.log 2>&1

_guides/digital_ocean.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ docker-compose exec workspace bash
5858
#### Install laravel Dependencies, Add .env , generate Key and give proper permission certain folder
5959

6060
```
61-
$ root@0e77851d27d3:/var/www/laravel# composer install
62-
$ root@0e77851d27d3:/var/www/laravel# cp .env.example .env
63-
$ root@0e77851d27d3:/var/www/laravel# php artisan key:generate
64-
$ root@0e77851d27d3:/var/www/laravel# exit
61+
$ root@0e77851d27d3:/var/www# composer install
62+
$ root@0e77851d27d3:/var/www# cp .env.example .env
63+
$ root@0e77851d27d3:/var/www# php artisan key:generate
64+
$ root@0e77851d27d3:/var/www# exit
6565
$root@midascode:~/laravel/laradock# cd ..
6666
$root@midascode:~/laravel# sudo chmod -R 777 storage bootstrap/cache
6767
```
@@ -141,13 +141,13 @@ Remove 0.0.0.0:80
141141

142142
```
143143
0.0.0.0:80
144-
root /var/www/laravel/public
144+
root /var/www/public
145145
```
146146
and replace with your https://yourdomain.com
147147

148148
```
149149
https://yourdomain.com
150-
root /var/www/laravel/public
150+
root /var/www/public
151151
```
152152
uncomment tls
153153

0 commit comments

Comments
 (0)