Code Monkey home page Code Monkey logo

Comments (8)

tbach avatar tbach commented on September 21, 2024

Hi Thuy,

You need to create a database, not just a Postgres user. This error is being caused by Vulnreport's seed script not having a database to use.

When you do that, your DATABASE_URL should be of the form:
postgres://[USER]:[PASS]@[HOST]/[DB NAME].

from vulnreport.

ThuyNT2916 avatar ThuyNT2916 commented on September 21, 2024

I understand my mistake. Thank you very much! :)

from vulnreport.

ThuyNT2916 avatar ThuyNT2916 commented on September 21, 2024

Sorry!!
I setup VulnReport App on local, don't use Heroku to deploy.
I have finished step 2 , it done. I try to open app on web browser, it doesn't display.
I read about Sinatra and I try to run file web.rb, but it displays
sinatra
And I still don't open web.
Can you guide me how to continue!
Where is my mistake?

from vulnreport.

tbach avatar tbach commented on September 21, 2024

@ThuyNT2916 below the lines that you screenshotted will be a line like

Maximum connections set to 1024
Listening on 0.0.0.0:443, CTRL+C to stop

That is the host/port you'll need to access to view Vulnreport.

from vulnreport.

ThuyNT2916 avatar ThuyNT2916 commented on September 21, 2024

After step 2, I need run app by using Sinatra, by command ruby web.rb, Is this true?
I'm trying run app by command ruby web.rb in Vulnreport folder, but I can't run it. Any thing is not enable. Host:port listening doesn't appear.
I use netstat, I don't see app running
I'm using Ruby version 2.3.1

from vulnreport.

tbach avatar tbach commented on September 21, 2024

No, you should run it using thin start. See the file in the repo start.sh for an example of how it can be invoked, though if you are not using authbind locally you could probably get it going with just thin start.

from vulnreport.

tbach avatar tbach commented on September 21, 2024

Another good example of how to start it is in Procfile:

web: bundle exec thin start -p $PORT --threaded

from vulnreport.

ThuyNT2916 avatar ThuyNT2916 commented on September 21, 2024

I have done App on local. Thank for your instruction!

from vulnreport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.