Run python freeze.py to populate the public directory. Uses the Frozen-Flask extension. Note: to properly handle redirects, I created a template to do an HTML meta refresh instead of returning a 301/302 redirect response code. This loses the behavior of looking at the Accept-Language headers to choose the most appropriate language. We'll have to see if we can reproduce that behavior using JavaScript. Sounds like we might need some server-side code to send back a JSONP of these headers, unless navigator.languages gives us what we want?
If you don't have the tools for Firebase Hosting installed, run npm install -g firebase-tools. I recommend using NVM to get the npm command on your development machine if you don't already have it.
Run firebase serve to preview what the public directory will look like when hosted.
Run firebase deploy to upload it to Firebase Hosting.
It lives! https://whogoes1st.com
How to deploy:
Run
python freeze.py
to populate thepublic
directory. Uses the Frozen-Flask extension. Note: to properly handle redirects, I created a template to do an HTML meta refresh instead of returning a 301/302 redirect response code. This loses the behavior of looking at theAccept-Language
headers to choose the most appropriate language. We'll have to see if we can reproduce that behavior using JavaScript. Sounds like we might need some server-side code to send back a JSONP of these headers, unlessnavigator.languages
gives us what we want?If you don't have the tools for Firebase Hosting installed, run
npm install -g firebase-tools
. I recommend using NVM to get thenpm
command on your development machine if you don't already have it.Run
firebase serve
to preview what thepublic
directory will look like when hosted.Run
firebase deploy
to upload it to Firebase Hosting.FIxes #40