bananajuicellc / first.bananajuice.tech

A selection game to help gamers pick who goes first.
https://whogoes1st.com
Mozilla Public License 2.0
1 stars 3 forks source link

Initial support for freezing and Firebase Hosting. #44

Closed tswast closed 8 years ago

tswast commented 8 years ago

It lives! https://whogoes1st.com

Hooray!

How to deploy:

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.

FIxes #40