View index.html
<script src="/__/firebase/3.7.4/firebase-app.js"></script>
<script src="/__/firebase/init.js"></script>
function funcURL(fnName) {
let projectIdIsh ='.')[0];
return `https://us-central1-${projectIdIsh}${fnName}`;
View env.js
var ENVS = {
prod: {firebase: {firebaseURL: ''}},
staging: {firebase: {firebaseURL: ''}},
dev: {firebase: {firebaseURL: ''}},
window.__env = (function() {
switch(window.location.hostname) {
case 'localhost':
View firebase.json
"hosting": {
"headers": [
"source": "/.well-known/apple-app-site-association",
"headers": [{"key": "Content-Type", "value": "application/json"}]

Firebase Migration Guide

Divshot has joined Google's Firebase! You can read more about the announcement on the Firebase blog. This guide is here to help you migrate and export your existing Divshot apps to Firebase Hosting.

If you don't already have a Firebase account, you'll need to create one. To do so, just visit and sign up with your Google account.

View .travis.yml
language: ruby
- 2.1.0
script: bundle exec rake generate
provider: divshot
master: development
staging: staging
production: production

Divshot/Firebase Hosting Feature Comparison

Feature Divshot Firebase
Global CDN
Custom Domains
SSL Supported
Command-Line Tools
Simple Rollback
Free w/ Firebase
View gist:6260675
View gist:5703986

How to Use Font Awesome in Divshot

  1. On the page, under Page Options select a Custom theme and use this URL:
  2. In the source editor, switch to CSS and add this line: @import url(
  3. Now you should be able to add Font Awesome icons using the source editor.

Note: We aim to have more robust icon support in the future, but this is a workaround that should work for now!

# Put this in a new directory, then run `rackup`
require 'sinatra'
require 'grape'
class Web < Sinatra::Base
get '/' do
"Hello world."
View gist:3894298
require 'pony'
Pony.options = {
:via => :smtp,
:from => "Somebody <>"
if ENV['RACK_ENV'] == 'development'
require "letter_opener"
via: LetterOpener::DeliveryMethod,