代码拉取完成,页面将自动刷新
同步操作将从 Piplin/Piplin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
.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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。