-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 809 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
SHELL := /bin/bash
configurator:
ifeq (,$(wildcard .env_file))
production/bin/configurator.sh
else
$(info Configuration exists.)
endif
start_server: configurator
set -o allexport && source .env_file && set +o allexport && bundle exec rake safe_init_index && bundle exec rackup -o 0.0.0.0
collect_all: configurator
set -o allexport && source .env_file && set +o allexport && bundle exec rake collect_all
run_worker: configurator
set -o allexport && source .env_file && set +o allexport && bundle exec rake requeue && bundle exec sidekiq -r ./environment.rb -c 5
test: configurator
bundle exec rake test
test_unit: configurator
bundle exec rake test:unit
test_unit_fork:
bundle exec rake test:unit
test_integration: configurator
bundle exec rake init_index && bundle exec rake test:integration