Johns Hopkins University Geoblacklight Project
GoRails has great Ruby on Rails setup instructions for macOS, Ubuntu, and Windows.
cd <your project directory>
git clone [email protected]:jhu-library-applications/geoblacklight.gitDuplicate the .example files in the project and remove the .example string from each of their filename. Configure each file as necessary, or keep the default values.
cp .example.env.development .env.development
cp .example.env.test .env.test Test with Bundler 2.1.4
bundleyarn install
bin/rails db:migrate RAILS_ENV=developmentThe rake task below will spin up Solr, index the test fixture documents, and start the default Rails web server.
bundle exec rake jhu:server- View the application at http://localhost:3000
- View the Solr admin panel at http://localhost:8983
bundle exec rake jhu:index_jhu_fixturesbundle exec rake jhu:b1g_index_umd_dataStop any instances of GeoBlacklight before running this command.
RAILS_ENV=test bundle exec rake ciAdd RUBYOPT=W0 to suppress deprecation warnings.
RUBYOPT=W0 RAILS_ENV=test bundle exec rake ciTo run the GeoPortal's Solr server via Docker, start Docker on your local computer, and run the following command:
docker-compose --env-file .env.development up