taarifa / TaarifaTraders

Charter for Cross-Border Trade in Goods and Services
http://crossbordertrade.org
Other
3 stars 1 forks source link

Setting up TaarifaTraders in AWS #6

Closed fayazv closed 8 years ago

fayazv commented 9 years ago

I managed setting up the TaarifaAPI and TaarifaTraders in AWS.

When testing the API, I ran:

python taarifa_api/taarifa_api.py

The API started running in 192.168.1.223:5000, when going to the browser and opening http://192.168.1.223:5000/ shows a 404 Error.

When running the TaarifaTraders I'm getting the same 404 Error. I tried running it in different hosts and ports, but ended up with no luck.

sudo python manage.py runserver -r -d --> 127.0.0.1:5000
sudo python manage.py runserver -h 192.168.1.223 -r -d --> 192.168.1.223:5000
sudo python manage.py runserver -h 192.168.1.223 -p 90 -r -d --> 192.168.1.223:90
sudo python manage.py runserver -h 192.168.1.223 -p 8080 -r -d --> 192.168.1.223:8080
fayazv commented 9 years ago

@kynan, @dgorissen any suggestions on this?

kynan commented 9 years ago

@fayazv You should probably deploy it behind Gunicorn, nginx or something similar. See Flask deployment options.

fayazv commented 9 years ago

Thanks @kynan. Will look into it.

fayazv commented 8 years ago

Got fed-up with apache and used nginx to setup the platform on AWS with the following documentation.

kynan commented 8 years ago

Great to hear!