-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (34 loc) · 992 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
serve:
php yii serve --docroot=@webroot --port=8899
run:
make serve
run-queue:
php yii queue/run -v
fix-permissions:
chmod -R 777 runtime/ web/assets/
db-update:
php yii core/migrate
db-migrate:
make db-update
db-create:
mysql -u root -p -e 'CREATE SCHEMA $(db-name) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;'
db-recreate:
php yii core/migrate/down 1000 && php yii core/migrate
env:
(cp .env.example .env) && (nano .env)
message:
php yii message src/messages/config.php
vendors-update:
composer update --prefer-dist
vendors-install:
composer install -o --prefer-dist --ignore-platform-reqs
composer-download:
(curl -sS https://getcomposer.org/installer | php) && (mv composer.phar /usr/local/bin/composer) && (composer global require "fxp/composer-asset-plugin:^1.2.0")
test:
php codecept.phar run
codecept-download:
wget http://codeception.com/codecept.phar
codecept-bootstrap:
php codecept.phar bootstrap && php codecept.phar build
deploy:
echo "Not implemented"