Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (24 sloc) 588 Bytes

安装Swoft

composer安装

composer create-project swoft/swoft swoft

通过 Packagist国内镜像 加速国内下载速度,请参阅 https://packagist.laravel-china.org

手动安装

git clone https://github.com/swoft-cloud/swoft
cd swoft
composer install --no-dev # 不安装 dev 依赖会更快一些
cp .env.example .env
vim .env # 根据需要调整启动参数

Docker方式安装

docker run -p 80:80 swoft/swoft

Docker-Compose 安装

git clone https://github.com/swoft-cloud/swoft
cd swoft
docker-compose up