mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Clean up Makefile
This commit is contained in:
parent
eafbbe0775
commit
69540b826f
1 changed files with 0 additions and 68 deletions
68
Makefile
68
Makefile
|
|
@ -1,71 +1,3 @@
|
|||
# Setting up the project
|
||||
build:
|
||||
docker-compose build --no-cache
|
||||
|
||||
setup_backend: bundle
|
||||
|
||||
setup:
|
||||
make bundle
|
||||
make setup_frontend
|
||||
make setup_db
|
||||
|
||||
bundle:
|
||||
docker-compose run --rm dawarich_app gem install bundler --conservative
|
||||
docker-compose run --rm dawarich_app bundle install
|
||||
|
||||
setup_frontend:
|
||||
npm i daisyui
|
||||
|
||||
setup_db:
|
||||
docker-compose run --rm dawarich_app rails db:create db:migrate db:seed
|
||||
|
||||
migrate:
|
||||
docker-compose run --rm dawarich_app bin/rails db:migrate
|
||||
rollback:
|
||||
docker-compose run --rm dawarich_app bin/rails db:rollback
|
||||
# Setting up the project
|
||||
|
||||
|
||||
# Debugging the project
|
||||
bash:
|
||||
docker-compose run --rm dawarich_app sh
|
||||
|
||||
console:
|
||||
docker-compose run --rm dawarich_app bundle exec rails c
|
||||
|
||||
debug:
|
||||
docker attach dawarich_app
|
||||
# Debugging the project
|
||||
|
||||
|
||||
# Running the project
|
||||
start_sidekiq:
|
||||
docker-compose up sidekiq
|
||||
|
||||
start:
|
||||
docker-compose up -d dawarich_app
|
||||
make debug
|
||||
|
||||
overmind:
|
||||
overmind start -f Procfile.dev
|
||||
# Running the project
|
||||
|
||||
test:
|
||||
RAILS_ENV=test NODE_ENV=test docker-compose run --rm dawarich_test bundle exec rspec
|
||||
# Running tests
|
||||
|
||||
deploy:
|
||||
git push dokku master
|
||||
|
||||
unlock_deploy:
|
||||
ssh dokku_frey 'dokku apps:unlock dawarich'
|
||||
|
||||
tail_production_log:
|
||||
ssh dokku_frey 'dokku logs dawarich --tail'
|
||||
|
||||
production_migrate:
|
||||
ssh dokku_frey 'dokku run dawarich bundle exec rails db:migrate'
|
||||
|
||||
build_and_push:
|
||||
git tag -a "$(version)" -f -m "$(version)"
|
||||
docker build . -t dawarich:$(version) --platform=linux/amd64
|
||||
|
|
|
|||
Loading…
Reference in a new issue