ruby: use bundler configuration instead of flags

This commit is contained in:
vanyauhalin
2023-10-24 09:38:00 +04:00
parent f096fd4d93
commit 8fd0cfcd47
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,4 @@
.bundle
bin
db
log

View File

@ -22,6 +22,8 @@ help: # Show help message for each of the Makefile recipes.
awk 'BEGIN {FS = ": # "}; {printf "%s: %s\n", $$1, $$2}'
.PHONY: dev
dev: \
export BUNDLE_WITH := development:doc:test
dev: # Install development dependencies and initialize the project.
@bundle install
@bundle exec rake app:update:bin
@ -30,8 +32,10 @@ ifeq ($(SORBET_SUPPORTED),1)
endif
.PHONY: prod
prod: \
export BUNDLE_WITHOUT := development:doc:test
prod: # Install production dependencies.
@bundle install --without development doc test
@bundle install
@bundle exec rake app:update:bin
.PHONY: server-dev