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 bin
db db
log 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}' awk 'BEGIN {FS = ": # "}; {printf "%s: %s\n", $$1, $$2}'
.PHONY: dev .PHONY: dev
dev: \
export BUNDLE_WITH := development:doc:test
dev: # Install development dependencies and initialize the project. dev: # Install development dependencies and initialize the project.
@bundle install @bundle install
@bundle exec rake app:update:bin @bundle exec rake app:update:bin
@ -30,8 +32,10 @@ ifeq ($(SORBET_SUPPORTED),1)
endif endif
.PHONY: prod .PHONY: prod
prod: \
export BUNDLE_WITHOUT := development:doc:test
prod: # Install production dependencies. prod: # Install production dependencies.
@bundle install --without development doc test @bundle install
@bundle exec rake app:update:bin @bundle exec rake app:update:bin
.PHONY: server-dev .PHONY: server-dev