2023-04-13 19:12:33 +03:00
|
|
|
build: ##
|
2023-04-18 17:17:01 +03:00
|
|
|
@docker-compose down
|
|
|
|
docker volume rm dev_twenty_node_modules_front || true
|
|
|
|
docker volume rm dev_twenty_node_modules_server || true
|
2023-04-25 18:47:15 +03:00
|
|
|
docker volume rm dev_twenty_node_modules_docs || true
|
2023-04-18 17:17:01 +03:00
|
|
|
docker-compose build
|
2023-04-13 19:12:33 +03:00
|
|
|
|
2023-01-31 21:20:59 +03:00
|
|
|
up: ##
|
|
|
|
@docker-compose up -d
|
|
|
|
|
2023-04-13 19:12:33 +03:00
|
|
|
down: ##
|
|
|
|
@docker-compose down
|
|
|
|
|
|
|
|
## Front
|
2023-01-31 21:20:59 +03:00
|
|
|
|
2023-04-13 19:12:33 +03:00
|
|
|
front-logs: ##
|
|
|
|
@docker-compose logs twenty-front -f
|
|
|
|
|
|
|
|
front-sh: ##
|
|
|
|
@docker-compose exec twenty-front sh
|
2023-01-31 21:20:59 +03:00
|
|
|
|
|
|
|
front-test: ##
|
2023-04-13 19:12:33 +03:00
|
|
|
@docker-compose exec twenty-front sh -c "npm run test"
|
2023-01-31 21:20:59 +03:00
|
|
|
|
|
|
|
front-coverage: ##
|
2023-04-13 19:12:33 +03:00
|
|
|
@docker-compose exec twenty-front sh -c "npm run coverage"
|
2023-01-31 21:20:59 +03:00
|
|
|
|
|
|
|
front-storybook: ##
|
2023-04-13 19:12:33 +03:00
|
|
|
@docker-compose exec twenty-front sh -c "npm run storybook"
|
|
|
|
|
2023-04-25 18:25:30 +03:00
|
|
|
front-graphql-generate: ##
|
|
|
|
@docker-compose exec twenty-front sh -c "npm run graphql-generate"
|
|
|
|
|
2023-04-13 19:12:33 +03:00
|
|
|
## Hasura
|
|
|
|
|
|
|
|
hasura-logs: ##
|
|
|
|
@docker-compose logs twenty-hasura -f
|
|
|
|
|
|
|
|
hasura-sh: ##
|
|
|
|
@docker-compose exec twenty-hasura sh
|
|
|
|
|
|
|
|
hasura-console: ##
|
|
|
|
@docker-compose exec twenty-hasura bash -c " \
|
|
|
|
socat TCP-LISTEN:9695,fork,reuseaddr,bind=twenty-hasura TCP:127.0.0.1:9695 & \
|
|
|
|
socat TCP-LISTEN:9693,fork,reuseaddr,bind=twenty-hasura TCP:127.0.0.1:9693 & \
|
|
|
|
hasura console --log-level DEBUG --address "127.0.0.1" --no-browser || exit 1"
|