2023-05-25 16:56:28 +03:00
|
|
|
build:
|
2023-10-09 16:50:49 +03:00
|
|
|
@docker compose down
|
2023-05-25 16:56:28 +03:00
|
|
|
@docker volume rm dev_twenty_node_modules_front > /dev/null 2>&1 || true
|
|
|
|
@docker volume rm dev_twenty_node_modules_server > /dev/null 2>&1 || true
|
|
|
|
@docker volume rm dev_twenty_node_modules_docs > /dev/null 2>&1 || true
|
2023-10-09 16:50:49 +03:00
|
|
|
@docker compose build
|
2023-04-13 19:12:33 +03:00
|
|
|
|
2023-07-18 07:15:57 +03:00
|
|
|
provision-postgres:
|
2023-10-13 16:57:01 +03:00
|
|
|
@docker stop twenty_postgres || true
|
|
|
|
@docker rm twenty_postgres || true
|
|
|
|
@docker volume rm twenty_db_data || true
|
|
|
|
@docker compose up --build postgres -d
|
2023-07-18 07:15:57 +03:00
|
|
|
|
2023-05-25 16:56:28 +03:00
|
|
|
up:
|
2023-10-09 16:50:49 +03:00
|
|
|
@docker compose up -d
|
2023-01-31 21:20:59 +03:00
|
|
|
|
2023-05-25 16:56:28 +03:00
|
|
|
down:
|
2023-10-09 16:50:49 +03:00
|
|
|
@docker compose down -v
|
2023-04-13 19:12:33 +03:00
|
|
|
|
2023-05-25 16:56:28 +03:00
|
|
|
sh:
|
2023-10-09 16:50:49 +03:00
|
|
|
@docker compose exec twenty-dev sh
|
2023-01-31 21:20:59 +03:00
|
|
|
|
2023-05-25 16:56:28 +03:00
|
|
|
front-start:
|
2023-10-09 16:50:49 +03:00
|
|
|
@docker compose exec twenty-dev sh -c "cd ./front && yarn start"
|
2023-04-13 19:12:33 +03:00
|
|
|
|
2023-06-26 00:58:34 +03:00
|
|
|
front-lint:
|
2023-10-09 16:50:49 +03:00
|
|
|
@docker compose exec twenty-dev sh -c "cd ./front && yarn lint"
|
2023-06-26 00:58:34 +03:00
|
|
|
|
2023-05-25 16:56:28 +03:00
|
|
|
front-test:
|
2023-10-09 16:50:49 +03:00
|
|
|
@docker compose exec twenty-dev sh -c "cd ./front && yarn test"
|
2023-01-31 21:20:59 +03:00
|
|
|
|
2023-06-30 00:06:15 +03:00
|
|
|
front-coverage:
|
2023-10-09 16:50:49 +03:00
|
|
|
@docker compose exec twenty-dev sh -c "cd ./front && yarn coverage"
|
2023-06-30 00:06:15 +03:00
|
|
|
|
2023-05-25 16:56:28 +03:00
|
|
|
front-graphql-generate:
|
2023-10-09 16:50:49 +03:00
|
|
|
@docker compose exec twenty-dev sh -c "cd ./front && yarn graphql:generate"
|
2023-01-31 21:20:59 +03:00
|
|
|
|
2023-05-25 16:56:28 +03:00
|
|
|
front-storybook:
|
2023-10-09 16:50:49 +03:00
|
|
|
@docker compose exec twenty-dev sh -c "cd ./front && yarn storybook:dev"
|
2023-01-31 21:20:59 +03:00
|
|
|
|
2023-05-25 16:56:28 +03:00
|
|
|
server-start:
|
2023-10-09 16:50:49 +03:00
|
|
|
@docker compose exec twenty-dev sh -c "cd /app/server && yarn start:dev"
|
2023-04-13 19:12:33 +03:00
|
|
|
|
2023-10-17 11:38:10 +03:00
|
|
|
server-database-init:
|
|
|
|
@docker compose exec twenty-dev sh -c "cd /app/server && yarn database:init"
|
2023-05-25 16:56:28 +03:00
|
|
|
|
2023-10-17 11:38:10 +03:00
|
|
|
server-database-setup:
|
|
|
|
@docker compose exec twenty-dev sh -c "cd /app/server && yarn database:setup"
|
|
|
|
|
|
|
|
server-database-migrate:
|
|
|
|
@docker compose exec twenty-dev sh -c "cd /app/server && yarn database:migrate"
|
2023-05-25 16:56:28 +03:00
|
|
|
|
2023-10-17 11:38:10 +03:00
|
|
|
server-database-generate:
|
|
|
|
@docker compose exec twenty-dev sh -c "cd /app/server && yarn database:generate"
|
2023-06-14 18:05:15 +03:00
|
|
|
|
2023-10-17 11:38:10 +03:00
|
|
|
server-database-seed:
|
|
|
|
@docker compose exec twenty-dev sh -c "cd /app/server && yarn database:seed"
|
2023-10-14 15:03:37 +03:00
|
|
|
|
|
|
|
server-database-reset:
|
|
|
|
@docker compose exec twenty-dev sh -c "cd /app/server && yarn database:reset"
|