-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (62 loc) · 1.51 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
-include ./.env
export
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"
# Infra
infra-up:
cd infracture && make up
infra-start:
cd infracture && make start
infra-stop:
cd infracture && make stop
infra-down:
cd infracture && make down
infra-rm:
cd infracture && make rm
infra-logs:
cd infracture && make logs
infra-db-migrate:
cd infracture && make db-migrate
infra-bash-php:
cd infracture && make bash-php
# Server
server-ssh:
sh ./bin/server-tools.sh ssh
server-deploy:
sh ./bin/server-tools.sh deploy
server-logs:
sh ./bin/server-tools.sh logs
server-sync:
sh ./bin/server-tools.sh sync