jawfish icon indicating copy to clipboard operation
jawfish copied to clipboard

Add procfile for Heroku deployment

Open avhadpooja opened this issue 7 years ago • 3 comments

Hi, Proc file is missing for deployment on Heroku. Can you provide some assistance for the same?

avhadpooja avatar Feb 13 '18 04:02 avhadpooja

I don't use the Heroku platform but once you first push the app, you'll have to do this in the environment:

  1. Make sure virtualenv is installed (pip install virtualenv I think, Heroku presumably has Python already)
  2. Make sure your pwd is the root of this repo
  3. virtualenv venv
  4. ./venv/scripts/activate.sh
  5. pip install -r requirements.txt

And from then on to start the app it's just a matter of ./venv/scripts/activate.sh then python run.py.

So your procfile (I'm not that familiar with them either) might look like:

web: ./venv/scripts/activate.sh; python run.py

Assuming you don't need fully qualified paths and semi-colons are allowed.

If this works or you figure it out, feel free to open a pull request. 👍

gingeleski avatar Feb 13 '18 19:02 gingeleski

Thank you for the information on Heroku. I want to integrate this tool into another existing scanner. Is there an API that I can use to extend jawfish?

avhadpooja avatar Feb 13 '18 19:02 avhadpooja

Not the way it's currently written - I coded this as a younger, more naive developer. At the moment the bulk of its work is client-side (in-browser).

I agree that it would be more useful in such a setup. It could be included in a devops pipeline. The UI could go to Electron from the current browser-based solution.

Opening a separate issue.

gingeleski avatar Feb 13 '18 20:02 gingeleski