dawarich/Makefile

73 lines
1.5 KiB
Makefile
Raw Normal View History

# Setting up the project
build:
docker-compose build --no-cache
setup_backend: bundle
setup:
make bundle
2022-04-07 12:45:38 -04:00
make setup_frontend
make setup_db
bundle:
2024-03-15 17:28:54 -04:00
docker-compose run --rm dawarich_app gem install bundler --conservative
docker-compose run --rm dawarich_app bundle install
2022-04-07 12:45:38 -04:00
setup_frontend:
npm i daisyui
setup_db:
2024-03-15 17:28:54 -04:00
docker-compose run --rm dawarich_app rails db:create db:migrate db:seed
migrate:
2024-03-15 17:28:54 -04:00
docker-compose run --rm dawarich_app bin/rails db:migrate
rollback:
2024-03-15 17:28:54 -04:00
docker-compose run --rm dawarich_app bin/rails db:rollback
# Setting up the project
# Debugging the project
bash:
2024-03-15 17:28:54 -04:00
docker-compose run --rm dawarich_app sh
console:
2024-03-15 17:28:54 -04:00
docker-compose run --rm dawarich_app bundle exec rails c
debug:
2024-03-15 17:28:54 -04:00
docker attach dawarich_app
# Debugging the project
# Running the project
start_sidekiq:
docker-compose up sidekiq
start:
2024-03-15 17:28:54 -04:00
docker-compose up -d dawarich_app
make debug
2023-02-03 09:42:56 -05:00
overmind:
overmind start -f Procfile.dev
# Running the project
test:
2024-03-15 17:28:54 -04:00
RAILS_ENV=test NODE_ENV=test docker-compose run --rm dawarich_test bundle exec rspec
# Running tests
deploy:
git push dokku master
unlock_deploy:
2024-03-15 17:28:54 -04:00
ssh dokku_frey 'dokku apps:unlock dawarich'
tail_production_log:
2024-03-15 17:28:54 -04:00
ssh dokku_frey 'dokku logs dawarich --tail'
production_migrate:
2024-03-15 17:28:54 -04:00
ssh dokku_frey 'dokku run dawarich bundle exec rails db:migrate'
build_and_push:
docker build . -t dawarich:$(version) --platform=linux/amd64
docker tag dawarich:$(version) registry.chibi.rodeo/dawarich:$(version)
docker push registry.chibi.rodeo/dawarich:$(version)