Next, we need to run a couple of commands to install Blacklight in the Rails app.
Note: If you are familiar with the Blacklight quickstart tutorial, we are not using the --marc or --jettywrapper commands because we are using our own custom Solr installation and data.
1. In Terminal, located in the home directory of the app (/home/username/public_html/test-app), run the following command to begin Blacklight installation:
2. Run the following to compile Rails assets and run database migrations:
If you see errors during this step, they may have to do with the database migration. If you set up your database to have utf8_bin collation, you shouldn't run into a problem.
Previous step: Add the Blacklight gem to the app's Gemfile
Next step: Determine Ruby command for Passenger and update configuration files
Note: If you are familiar with the Blacklight quickstart tutorial, we are not using the --marc or --jettywrapper commands because we are using our own custom Solr installation and data.
1. In Terminal, located in the home directory of the app (/home/username/public_html/test-app), run the following command to begin Blacklight installation:
# rails generate blacklight:install --devise
2. Run the following to compile Rails assets and run database migrations:
# bundle exec rake assets:precompile db:migrate RAILS_ENV=production
If you see errors during this step, they may have to do with the database migration. If you set up your database to have utf8_bin collation, you shouldn't run into a problem.
Previous step: Add the Blacklight gem to the app's Gemfile
Next step: Determine Ruby command for Passenger and update configuration files
No comments:
Post a Comment