forked from samvera/hyrax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.engine_cart.yml
40 lines (40 loc) · 1.56 KB
/
.engine_cart.yml
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
30
31
32
33
34
35
36
37
38
39
40
# Greetings Hyrax developer, you may be surprised to see this file.
# Hyrax is moving to using Postgresql for testing in CircleCI and
# hopefully by Hyrax developers during local development. Previously,
# we used sqlite.
#
# And while installing Postgresql is beyond the scope of this
# community, I (Jeremy) installed Postgresql via homebrew (brew.sh),
# and have used the following for testing (note `hyrax-testup` is
# defined later on):
#
# ```console
# hyrax-testup
# brew services start postgresql
# export DATABASE_URL="postgresql://localhost:5432/internal_development"
# bundle exec rspec
# ```
#
# But, before running that, I have a shell alias (see
# https://github.com/jeremyf/dotzshrc/blob/trunk/configs/aliases.zsh)
# that I call. The alias ensures that I have:
#
# * clean set of solr indices
# * running solr indices
# * running fcrepo
# * running redis server
#
# ```console
# alias hyrax-testup='cd $HOME/git/samvera/hyrax/.internal_test_app ; \
# rm -rf tmp/solr-valkyrie-test/server/solr/hyrax-valkyrie-test ; \
# rm -rf tmp/solr-test/server/solr/hydra-test ; \
# fcrepo_wrapper --config config/fcrepo_wrapper_test.yml & \
# solr_wrapper --config config/solr_wrapper_test.yml & \
# solr_wrapper --config config/solr_wrapper_valkyrie_test.yml & \
# redis-server &'
# ```
#
# Best luck, and I (Jeremy) hope to add this to the Wiki at some point
# once this current code is accepted into the main-line.
rails_options:
- "--database=postgresql" # Caution, as you may only get "one option" until this is merged. https://github.com/cbeer/engine_cart/pull/102