Skip to content

Commit

Permalink
replace var/www/laravel with var/www
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoudz committed Nov 1, 2016
1 parent 03bba8d commit 1b05dfd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - 进入目录下继续工作..

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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..
Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions _guides/digital_ocean.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 1b05dfd

Please sign in to comment.