iT邦幫忙

0

Laradock on Windows 10

  • 分享至 

  • xImage
  •  

Install Laradock

md c:\dockers\laradock
md c:\dockers\laraprojects
cd c:\dockers\laradock
git clone https://github.com/Laradock/laradock.git
cp .\.env.example .\.env

Configs

laradock

  • c:\dockers\laradock\.env
APP_CODE_PATH_HOST=../laraprojects

nginx

  • c:\dockers\laradock\nginx\sites\default.conf
#root /var/www/public;
root /var/www/laravel/public;
  • an alternative way
cd c:\dockers\laradock\nginx\sites\
cp .\laravel.conf.example .\laravel.conf

file name is irrelevant

Start Up Laradock

docker-compose up -d nginx mysql

Create a Demo Project

# enter workspace container
docker-compose exec workspace bash

# create the laravel project
composer create-project laravel/laravel --prefer-dist

Run

http://localhost

WTF?

Modify Directory Permission

# enter workspace container
docker-compose exec workspace bash
cd laravel
chmod -R 777 storage/*

Yes, it's 777.

Voila


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言