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

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 firebase.com and sign up with your Google account.

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

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
app=dumb-hook-example&user=michael%40intridea.com&url=http%3A%2F%2Fdumb-hook-example.herokuapp.com&head=dd615b2&head_long=dd615b2dff8c35abfcbd49b45fb4e9d2cb965874&prev_head=8a0e2c7&git_log=%20%20*%20Michael%20Bleigh%3A%20Add%20another.
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: https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css
  2. In the source editor, switch to CSS and add this line: @import url(https://netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.min.css)
  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!

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