Police-Data-Accessibility-Project / data-sources-mirror

A home for data initially entered into public Airtable forms
1 stars 1 forks source link

Host API on Digital Ocean #15

Closed mbodeantor closed 1 year ago

mbodeantor commented 1 year ago

I'm getting this error when I try to deploy the API on Digital Ocean: ImportError: cannot import name 'Mapping' from 'collections'

josh-chamberlain commented 1 year ago

@mbodeantor it's possible to automate DO to deploy without using Travis (we do this for https://pdap.io). I set up this app with that in mind.

If we still need to set up Travis, you are likely best to do that—I gave you the relevant DO permissions but please let me know if you need anything else.

josh-chamberlain commented 1 year ago

I got this up, but I got a warning about how it's a development server.

INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.

https://flask.palletsprojects.com/en/2.3.x/deploying/

I'll stop touching stuff for now.

mbodeantor commented 1 year ago

That's just referring to the fact that it's being hosted locally. This will be taken care of by DO