twenty/infra/dev/Makefile

40 lines
1.1 KiB
Makefile
Raw Normal View History

2023-05-25 16:56:28 +03:00
build:
@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
@docker-compose build
2023-04-13 19:12:33 +03:00
2023-05-25 16:56:28 +03:00
up:
@docker-compose up -d
2023-05-25 16:56:28 +03:00
down:
2023-04-13 19:12:33 +03:00
@docker-compose down
2023-05-25 16:56:28 +03:00
sh:
@docker-compose exec twenty-dev sh
2023-05-25 16:56:28 +03:00
front-start:
@docker-compose exec twenty-dev sh -c "cd /app/front && npm run start"
2023-04-13 19:12:33 +03:00
2023-05-25 16:56:28 +03:00
front-test:
@docker-compose exec twenty-dev sh -c "cd /app/front && npm run test"
2023-05-25 16:56:28 +03:00
front-graphql-generate:
2023-05-26 01:31:43 +03:00
@docker-compose exec twenty-dev sh -c "cd /app/server && npm run graphql:generate"
2023-05-25 16:56:28 +03:00
front-storybook:
@docker-compose exec twenty-dev sh -c "cd /app/front && npm run storybook"
2023-05-25 16:56:28 +03:00
server-start:
2023-05-26 01:31:43 +03:00
@docker-compose exec twenty-dev sh -c "cd /app/server && npm run start:dev"
2023-04-13 19:12:33 +03:00
2023-05-25 16:56:28 +03:00
server-prisma-generate:
@docker-compose exec twenty-dev sh -c "cd /app/server && npm run prisma:generate"
server-prisma-migrate:
@docker-compose exec twenty-dev sh -c "cd /app/server && npm run prisma:migrate"
server-prisma-seed:
@docker-compose exec twenty-dev sh -c "cd /app/server && npm run prisma:seed"