jackhammer icon indicating copy to clipboard operation
jackhammer copied to clipboard

Local Setup for the Jackhammer

Open hackerabhinavverma opened this issue 7 years ago • 7 comments

Hi Can you provide the steps for local setup. I don't want to use docker to run the jackhammer framework.

Do you have any documentation to do the local setup without docker?

hackerabhinavverma avatar Jun 06 '17 08:06 hackerabhinavverma

steps for local setup

Installing Ruby & rails:

  1. Install RVM from https://rvm.io/rvm/install
  2. rvm install -v 2.3.0
  3. gem install bundler
  4. bundle install

Do DB installation and configure db details in config/database.yml

Run rails s for starting application . application can be access from localhost:3000

kmadhusudhan avatar Jun 08 '17 09:06 kmadhusudhan

Dear Team, Can you pls post db details in config/database.yml I am trying to install locally. installed rvm and ruby then finally installed sql client. sudo apt-get install libmysqlclient-dev sudo gem install mysql2 -v '0.4.10' but getting error since i did not configure database.yml pls give the details

sampathmende avatar Feb 06 '18 04:02 sampathmende

please configure configure Database username,password and database name

kmadhusudhan avatar Feb 06 '18 10:02 kmadhusudhan

I did db setup for production and default production: adapter: mysql2 encoding: utf8 reconnect: false database: jackhammer_production pool: 5 username: root password: root socket: /tmp/mysql.sock

when i use the commands to create db bundle exec bundle install && bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rake db:seed

It went fine with but one issue jackhammer_development doesnot exist. THen i stared the server rails s then accessed the applicaiton localhost:3000 It is showing for pending but not scanning? whats the problem ?? how to debug it?? capture

sampathmende avatar Feb 06 '18 11:02 sampathmende

By default it is getting started on jackhammer_development database. i ran query on my sql console shows that jackhammer_production db does not exist. is that the problem??? pls reply

sampathmende avatar Feb 07 '18 05:02 sampathmende

Run this bundle exec rails s -e production

kmadhusudhan avatar Feb 07 '18 07:02 kmadhusudhan

@KMadhuSudhan First i ran the query

  1. bundle exec bundle install && bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rake db:seed got deprecation warning:DEPRECATION WARNING: The factory_girl gem is deprecated. Please upgrade to factory_bot. See https://github.com/thoughtbot/factory_bot/blob/v4.9.0/UPGRADE_FROM_FACTORY_GIRL.md for further instructions. (called from <top (required)> at /home/sampath/jackhammer/web/app/config/application.rb:6)

  2. bundle exec rails s -e production server is up and running But when i access the application on localhost:3000 got error capture

But if i ran it without production its running but not scanning the application

sampathmende avatar Feb 07 '18 08:02 sampathmende