jackhammer
jackhammer copied to clipboard
Local Setup for the Jackhammer
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?
steps for local setup
Installing Ruby & rails:
- Install RVM from https://rvm.io/rvm/install
- rvm install -v 2.3.0
- gem install bundler
- 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
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
please configure configure Database username,password and database name
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??
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
Run this bundle exec rails s -e production
@KMadhuSudhan First i ran the query
-
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)
-
bundle exec rails s -e production server is up and running But when i access the application on localhost:3000 got error
But if i ran it without production its running but not scanning the application