colab-chat / colab-server

GNU General Public License v3.0
4 stars 1 forks source link

Serve static files directly using nginx. #18

Closed asafpm closed 7 years ago

AntonPiccardoSelg commented 7 years ago

@asafpm Is there a way to test it?

asafpm commented 7 years ago

adding --log-level debug as an argument for gunicorn you can see who serves what content. I don't know if this could be integrated into the development configuration.

AntonPiccardoSelg commented 7 years ago

@asafpm Thanks. I will check it later. Yes, I think that would be good to integrate that into the dev configuration :+1:

AntonPiccardoSelg commented 7 years ago

Looking in console of the browser, it seems that there is still a problem loading Bootstrap

asafpm commented 7 years ago

Are you sure you are using the new configuration?

I tested with both firefox and chrome and didn't find any loading errors. Does the debug-level log say that web is serving the static files or is it nginx?

asafpm commented 7 years ago

I think something is not quite right yet that 404 error in the log already showed up when the static stuff was getting served by flask. Did you add --log-level debug to gunicorm? I suspect you still have to rebuild this to get the updated configuration to work.