Skip to content

Instantly share code, notes, and snippets.


Umar Ali umarali

  • Emerssive
  • Pakistan
View GitHub Profile
View posts.json
"posts": [{
"id": "1",
"content": "Salaam, this is my first post.",
"date_posted": "Sept 20, 2020",
"author": {
"name": "Hamza Asghar Farooqi",
"image_src": "/path/to/image.png"
}, {
umarali / bss.steps
Last active May 22, 2019
Steps to Setup BSS Project
View bss.steps
Remove the hashes (#) from the db/#database.yml# file name
Run `rake db:create` (to create db) followed by `rake db:migrate` (to migrate all the pending migrations)
Download respective JRE for your system from the following link, and instal JRE:
Run `bundle exec rake sunspot:solr:start` to run Solr search engine
Start Rails server on port 3000 or any other port. e.g. rails s -p <PORT> (you can install ngrok and then run `ngrok http <PORT>` to expose your local web server)
Once done, hit your localhost followed by '/items/import' route. e.g. If you're running your Rails web server on port 3000, then you shall hit this url in your browser: http://localhost:3000/items/import (this loads and runs through some scripts to populate data in the connected database)
Useful Link:
a. Debugging common issues with Solr (
You can’t perform that action at this time.