Monday, June 13, 2016

Add the Blacklight gem to the app's Gemfile

The app's Gemfile needs to be edited to include the Blacklight gem.

1. Using a FTP program, download the app's Gemfile located in the app's home directory on the server:

/home/username/public_html/test-app/Gemfile

2. Open the downloaded Gemfile in a text editor and add the following lines to the end of the file:

gem 'blacklight', "~> 6.0"
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]


3. Save the file and use the FTP program to replace the original Gemfile on the server with the edited Gemfile.

4. Download the Gemfile.lock file from the nrpp-directory folder to have a backup

5. Delete the Gemfile.lock file from the nrpp-directory folder on the server.

6. Run the bundler command with the no-deployment option to create a new Gemfile.lock file with the Blacklight gems we added:

# bundle install --no-deployment



Previous post: Configure the app's secrets.yml file

Next post: Install Blacklight in the app


No comments:

Post a Comment