olacabs / jackhammer

Jackhammer - One Security vulnerability assessment/management tool to solve all the security team problems.
https://jch.olacabs.com/userguide
Other
718 stars 162 forks source link

database not persisting entries in jackhammer #79

Open sampathmende opened 6 years ago

sampathmende commented 6 years ago

when ever i restart the jackhammer its database entries no reloading. every time i am running the below command to get the schema in 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 is there any other solution to avoid running the schema every time jackhammer restarts? why its not persisting the schema??

kmadhusudhan commented 6 years ago

if your deleting db docker then this issue will come , please do not delete db docker

kmadhusudhan commented 6 years ago

@sampathmende Instead rebuilding jackhammer every time . please follow below steps to stop and start application from root directory .

Stop = > docker-compose stop Start => docker-compose start Build => docker-compose up -d

This maintains database persistence