docker compose up --buildbuilds thedbandrailsservices and starts them.- Put a PSQL dump from production in
database_dumps - To load the data,
docker compose exec db bashand then use pg_restore to load the data into the database:pg_restore -U postgres -d shariasource_local /database_dumps/<EXPORTED_FILE>.dump
- Runs within the
railscontainerDockerfile.devusingsunspot_solrgem.entrypointstarts it. - If you aren't seeing any search results, you probably need to reindex:
docker compose exec rails bashand thenbundle exec rake sunspot:reindex. This usually takes 15-20 minutes.
- Also currently runs within the
railscontainerDockerfile.devusingredisgem. Started in theentrypoint.
- Change Ruby and gem versions in
Gemfile execinto Railsbundle update; this will update theGemfile.lockfile. May need to adjust versions of gems to get them to work together.- Commit the
GemfileandGemfile.lockfiles
- Use
rvmto install the version of Ruby specified in theGemfile. bundle install(orbundle _1.16.1_ install)- Copy
config/database.example.ymltoconfig/database.ymland fill out the appropriate fields. - Copy
config/secrets.example.ymltoconfig/secrets.ymland fill in your own secrets. To generate a random long secret, userake secret. - Add Google Analytics tags in
application.jsandlayouts/shared/_google_analytics spring binstub --all.- The first admin user must be set in the rails console. Create a user,
rails c, and set the admin flag. Future roles can be set in-app by this admin.
SHARIAsource is licensed under the GNU GPL 3.0 License.
2017-2023 President and Fellows of Harvard College.