私信发送成功
Watch Star Fork

Piplin / PiplinPHPGVP

Piplin是一款免费、开源的持续集成与部署系统,适用于软件的自动化构建、测试和部署相关的各种应用场景 - 官方QQ群:656868 http://piplin.com
克隆/下载
一键复制 编辑 原始数据 按行查看 历史
Makefile 1.49 KB lianguan 提交于 2017-12-03 11:30 . Simplify install wizard
.PHONY: dependency-install file-permission
dependency: dependency-install file-permission npm-install
install: app-install cache-config
update: dependency-install app-update dump-autoload cache-config
help:
@echo 'make install -- download dependencies and install'
@echo 'make update -- pull repo and rebuild assets without minifing'
dependency-install:
composer install -o --no-dev
npm-install:
npm install --production
app-install:
php artisan app:install
app-update:
- php artisan app:update
file-permission:
chmod -R 777 storage/
chmod -R 777 bootstrap/cache/
chmod -R 777 public/upload
migration:
php artisan migrate --force
seed:
php artisan db:seed
cs:
vendor/bin/phpcs -p --standard=PSR2 --ignore="app/Helpers/Helpers.php,app/Presenters" app/
vendor/bin/phpdoccheck --directory=app
dump-autoload:
php artisan clear-compiled
cache-config:
php artisan config:cache
# Create the databases for Travis CI
ifeq "$(DB)" "sqlite"
travis:
@sed -i 's/DB_CONNECTION=mysql/DB_CONNECTION=sqlite/g' .env
@sed -i 's/DB_DATABASE=piplin//g' .env
@sed -i 's/DB_USERNAME=travis//g' .env
@touch $(TRAVIS_BUILD_DIR)/database/database.sqlite
else ifeq "$(DB)" "pgsql"
travis:
@sed -i 's/DB_CONNECTION=mysql/DB_CONNECTION=pgsql/g' .env
@sed -i 's/DB_USERNAME=piplin/DB_USERNAME=postgres/g' .env
@psql -c 'CREATE DATABASE piplin;' -U postgres;
else
travis:
@sed -i 's/DB_USERNAME=piplin/DB_USERNAME=travis/g' .env
@sed -i 's/DB_PASSWORD=secret/DB_PASSWORD=/g' .env
@mysql -e 'CREATE DATABASE piplin;'
endif

评论 ( 0 )

你可以在登录后,对此项目发表评论

6_float_left_people 6_float_left_close