2018-02-27 06:59:21 +08:00
|
|
|
#!make
|
|
|
|
|
2018-03-30 05:43:46 +08:00
|
|
|
rebuild: _down
|
2021-05-06 04:46:51 +08:00
|
|
|
docker compose build --no-cache
|
2018-02-27 06:59:21 +08:00
|
|
|
|
2018-03-30 05:43:46 +08:00
|
|
|
up: _up status
|
|
|
|
_up:
|
2021-05-06 04:46:51 +08:00
|
|
|
docker compose up -d
|
2018-02-27 06:59:21 +08:00
|
|
|
|
2018-03-30 05:43:46 +08:00
|
|
|
stop: _stop status
|
|
|
|
_stop:
|
2021-05-06 04:46:51 +08:00
|
|
|
docker compose stop
|
2018-02-27 06:59:21 +08:00
|
|
|
|
2018-03-30 05:43:46 +08:00
|
|
|
down: _down status
|
|
|
|
_down:
|
2021-05-06 04:46:51 +08:00
|
|
|
docker compose down
|
2018-02-27 06:59:21 +08:00
|
|
|
|
2018-03-30 05:43:46 +08:00
|
|
|
restart: _stop _up status
|
2018-02-27 06:59:21 +08:00
|
|
|
|
|
|
|
status:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose ps
|
2018-02-27 06:59:21 +08:00
|
|
|
|
2018-03-07 03:26:43 +08:00
|
|
|
tx:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm tx tx pull -a -s -f -d
|
2018-03-07 03:26:43 +08:00
|
|
|
|
2018-02-27 06:59:21 +08:00
|
|
|
console-node:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm node sh
|
2018-03-07 03:26:43 +08:00
|
|
|
console-tx:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm tx sh
|
2018-02-27 06:59:21 +08:00
|
|
|
console-php:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose exec php sh
|
2018-03-30 05:43:46 +08:00
|
|
|
console: console-node
|
2018-02-27 06:59:21 +08:00
|
|
|
|
|
|
|
logs:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose logs --tail=100 -f
|
2018-02-27 06:59:21 +08:00
|
|
|
logs-db:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose logs --tail=100 -f db
|
2018-02-27 06:59:21 +08:00
|
|
|
logs-php:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose logs --tail=100 -f php
|
2018-02-27 06:59:21 +08:00
|
|
|
logs-node:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose logs --tail=100 -f node
|
2018-02-27 06:59:21 +08:00
|
|
|
logs-nginx:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose logs --tail=100 -f nginx
|
2018-02-27 06:59:21 +08:00
|
|
|
logs-mail:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose logs --tail=100 -f mail
|
2018-03-07 03:26:43 +08:00
|
|
|
logs-tx:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose logs --tail=100 -f tx
|
2018-02-27 06:59:21 +08:00
|
|
|
|
2018-03-30 05:43:46 +08:00
|
|
|
rl-lint:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm node gulp lint
|
2018-03-07 03:26:43 +08:00
|
|
|
rl-dev:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm node npm run watch-js
|
2019-07-05 03:09:27 +08:00
|
|
|
rl-compile:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm node gulp build
|
2019-07-05 03:09:27 +08:00
|
|
|
rl-compile-with-source:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm node gulp build --source
|
2019-07-05 04:35:53 +08:00
|
|
|
rl-watch-css:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm node npm run watch-css
|
2018-10-06 07:13:58 +08:00
|
|
|
rl-watch-js:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm node npm run watch-js
|
2018-10-06 07:13:58 +08:00
|
|
|
|
2018-02-27 06:59:21 +08:00
|
|
|
rl-build:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm node gulp all
|
2018-02-27 06:59:21 +08:00
|
|
|
rl-build-pro:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm node gulp all --pro
|
2018-03-30 05:43:46 +08:00
|
|
|
|
2018-09-19 04:35:41 +08:00
|
|
|
yarn-install:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm node yarn install
|
2018-09-19 04:35:41 +08:00
|
|
|
yarn-outdated:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm node yarn outdated
|
2018-09-19 04:35:41 +08:00
|
|
|
yarn-upgrade:
|
2021-05-06 04:46:51 +08:00
|
|
|
@docker compose run --no-deps --rm node yarn upgrade-interactive --exact --latest
|
2018-09-19 04:35:41 +08:00
|
|
|
|
2018-03-30 05:43:46 +08:00
|
|
|
gpg:
|
|
|
|
docker run -it --rm -w=/var/www \
|
|
|
|
-v $(shell pwd)/.docker/.cache/.gnupg:/root/.gnupg \
|
|
|
|
-v $(shell pwd):/var/www \
|
2019-07-12 05:18:12 +08:00
|
|
|
ubuntu:16.04 bash
|