mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-22 03:11:44 +03:00
64 lines
1.8 KiB
Makefile
64 lines
1.8 KiB
Makefile
build:
|
|
@docker compose down
|
|
rm -rf ../../front/node_modules
|
|
rm -rf ../../server/node_modules
|
|
rm -rf ../../docs/node_modules
|
|
@docker volume rm twenty_node_modules_front > /dev/null 2>&1 || true
|
|
@docker volume rm twenty_node_modules_server > /dev/null 2>&1 || true
|
|
@docker volume rm twenty_node_modules_docs > /dev/null 2>&1 || true
|
|
@docker compose build
|
|
|
|
provision-postgres:
|
|
@docker stop twenty_postgres || true
|
|
@docker rm twenty_postgres || true
|
|
@docker volume rm twenty_db_data || true
|
|
@docker compose up --build postgres -d
|
|
|
|
up:
|
|
@docker compose up -d
|
|
|
|
down:
|
|
@docker compose down -v
|
|
|
|
sh:
|
|
@docker compose exec twenty-dev sh
|
|
|
|
front-start:
|
|
@docker compose exec twenty-dev sh -c "cd ./front && yarn start"
|
|
|
|
front-lint:
|
|
@docker compose exec twenty-dev sh -c "cd ./front && yarn lint"
|
|
|
|
front-test:
|
|
@docker compose exec twenty-dev sh -c "cd ./front && yarn test"
|
|
|
|
front-coverage:
|
|
@docker compose exec twenty-dev sh -c "cd ./front && yarn coverage"
|
|
|
|
front-graphql-generate:
|
|
@docker compose exec twenty-dev sh -c "cd ./front && yarn graphql:generate"
|
|
|
|
front-storybook:
|
|
@docker compose exec twenty-dev sh -c "cd ./front && yarn storybook:dev"
|
|
|
|
server-start:
|
|
@docker compose exec twenty-dev sh -c "cd /app/server && yarn start:dev"
|
|
|
|
server-database-init:
|
|
@docker compose exec twenty-dev sh -c "cd /app/server && yarn database:init"
|
|
|
|
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"
|
|
|
|
server-database-generate:
|
|
@docker compose exec twenty-dev sh -c "cd /app/server && yarn database:generate"
|
|
|
|
server-database-seed:
|
|
@docker compose exec twenty-dev sh -c "cd /app/server && yarn database:seed"
|
|
|
|
server-database-reset:
|
|
@docker compose exec twenty-dev sh -c "cd /app/server && yarn database:reset"
|