Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial commit

  • Loading branch information...
commit f6da250c5fe18ade5fb3a9e4c818ab3c5b08aad7 0 parents
Wesley Beary authored
4 Gemfile
@@ -0,0 +1,4 @@
+source :rubygems
+gem 'showoff'
+gem 'heroku', :require => false
+gem 'thin'
52 Gemfile.lock
@@ -0,0 +1,52 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ addressable (2.2.6)
+ blankslate (2.1.2.4)
+ bluecloth (2.1.0)
+ daemons (1.1.4)
+ eventmachine (0.12.10)
+ gli (1.3.4)
+ heroku (2.8.4)
+ launchy (>= 0.3.2)
+ rest-client (~> 1.6.1)
+ rubyzip
+ term-ansicolor (~> 1.0.5)
+ json (1.6.1)
+ launchy (2.0.5)
+ addressable (~> 2.2.6)
+ mime-types (1.16)
+ nokogiri (1.5.0)
+ parslet (1.2.3)
+ blankslate (~> 2.0)
+ rack (1.3.3)
+ rack-protection (1.1.4)
+ rack
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
+ rubyzip (0.9.4)
+ showoff (0.7.0)
+ bluecloth
+ gli (>= 1.3.2)
+ json
+ nokogiri
+ parslet
+ sinatra
+ sinatra (1.3.0)
+ rack (~> 1.3)
+ rack-protection (~> 1.1)
+ tilt (~> 1.3)
+ term-ansicolor (1.0.6)
+ thin (1.2.11)
+ daemons (>= 1.0.9)
+ eventmachine (>= 0.12.6)
+ rack (>= 1.0.0)
+ tilt (1.3.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ heroku
+ showoff
+ thin
1  Procfile
@@ -0,0 +1 @@
+web: bundle exec thin start -p $PORT
10 README.md
@@ -0,0 +1,10 @@
+# Heroku Showoff Template
+
+Showoff is presentation software for hackers. This template is a basic showoff
+repository with Heroku styling. It is meant as a starting point for your own
+presentations.
+
+## Advanced Showoff
+
+Check out bgentry's showoff-pusher gem that uses pusher to control your
+presentation in the viewer's browser.
BIN  background-seigaiha.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3  config.ru
@@ -0,0 +1,3 @@
+require "showoff"
+
+run ShowOff.new
BIN  logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 showoff.css
@@ -0,0 +1,39 @@
+@import url('https://statics.herokuapp.com/fonts/fonts.css');
+
+body {
+ color: #C6C2EF;
+ background: url(http://assets.heroku.com.s3.amazonaws.com/showoff/background-seigaiha.png), -moz-linear-gradient(90deg, #1b1b24 0%, hsl(240, 14%, 6%) 100%);
+ background: url(http://assets.heroku.com.s3.amazonaws.com/showoff/background-seigaiha.png), -webkit-gradient(linear, left bottom, left top, from(#1b1b24), to(hsl(240, 14%, 6%)));
+ line-height: 2em;
+}
+.slide {
+ border-left: 1px solid hsla(240, 14%, 21%, 0.4);
+ border-right: 1px solid hsla(240, 14%, 21%, 0.4);
+ width: 1022px;
+ background: hsl(240, 14%, 11%);
+}
+.content {
+ font-family: "CorbelRegular", "Helvetica Neue", Helvetica, sans-serif;
+ text-shadow: 0 1px 1px rgba(0, 0, 0, 0.42);
+}
+.content h1 {
+ color: #fff;
+}
+#footer {
+ background: url(http://assets.heroku.com.s3.amazonaws.com/showoff/logo.png) no-repeat left center;
+ color: hsla(240, 20%, 40%, .7);
+ height: 30px;
+ padding-left: 28px;
+ top: -36px;
+ width: 977px;
+ font: 13px/30px "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+}
+
+.commandline code.command{
+ color: black;
+}
+
+pre, code {
+ background-color: white;
+ color: black;
+}
1  showoff.json
@@ -0,0 +1 @@
+{ "name": "Heroku Overview", "sections": [ {"section":"slides"} ]}
38 slides/01_intro.md
@@ -0,0 +1,38 @@
+!SLIDE
+# Heroku in 30 Minutes or Less #
+geemus (Wesley Beary)
+
+!SLIDE bullets incremental
+# Less #
+
+* fiddly bits
+* guess and check
+* worry
+
+!SLIDE bullets incremental
+# More #
+
+* development
+* deployment
+* running apps
+
+!SLIDE
+# Setup #
+
+http://toolbelt.heroku.com/
+
+!SLIDE commandline incremental smaller
+# Command Line Interface #
+
+ $ heroku help
+ Usage: heroku COMMAND [--app APP] [command-specific-options]
+
+ Primary help topics, type "heroku help TOPIC" for more details:
+
+ auth # authentication (login, logout)
+ [...]
+
+ Additional topics:
+
+ account # manage heroku account options
+ [...]
16 slides/02_develop.md
@@ -0,0 +1,16 @@
+!SLIDE
+# Heroku: Develop #
+
+!SLIDE bullets incremental
+# development <=> production #
+
+* versioned code
+* explicit dependencies
+* env variable config
+
+!SLIDE bullets incremental
+# reduced latency #
+
+* quicker bootstrapping
+* less "works on my machine"
+* continuous deployment
24 slides/03_deploy.md
@@ -0,0 +1,24 @@
+!SLIDE
+# Heroku: deploy #
+
+!SLIDE commandline incremental smaller
+# Deploy Zero #
+
+ $ heroku create
+ Created sushi.herokuapp.com | git@heroku.com:sushi.git
+
+ $ git push heroku master
+ -----> Heroku receiving push
+ -----> Rails app detected
+ -----> Compiled slug size is 8.0MB
+ -----> Launching... done, v1
+ http://sushi.herokuapp.com deployed to Heroku
+
+!SLIDE bullets incremental smaller
+# -----> What? #
+
+* Heroku receiving push
+* Rails app detected
+* Compiled slug size is 8.0MB
+* Launching... done, v1
+
46 slides/04_run.md
@@ -0,0 +1,46 @@
+!SLIDE
+# Heroku: run #
+
+!SLIDE commandline incremental smaller
+# Status #
+
+ $ heroku ps
+ Process State Command
+ ------------ ------------------ ------------------------------
+ web.1 created for 5m
+
+ $ heroku ps:reset web.1
+ Restarting web.1 process... done
+
+!SLIDE commandline incremental smaller
+# Beyond 'web.#' Processes #
+
+ $ heroku run pwd
+ Running pwd attached to terminal... up, run.1
+ /app
+
+ $ heroku ps
+ Process State Command
+ ------------ ------------------ ------------------------------
+ run.1 complete for 12s pwd
+ web.1 created for 7m
+
+!SLIDE commandline incremental smaller
+# Introspection #
+
+ $ heroku logs
+ 2011-12-12T22:35:59+00:00 heroku[run.1]: State changed from created to starting
+ 2011-12-12T22:35:59+00:00 app[run.1]: Awaiting client
+ 2011-12-12T22:35:59+00:00 app[run.1]: Starting process with command `pwd`
+ 2011-12-12T22:35:59+00:00 heroku[run.1]: Process exited
+ 2011-12-12T22:36:01+00:00 heroku[run.1]: State changed from starting to complete
+
+!SLIDE commandline incremental smaller
+# Auto Magic #
+
+ $ cat Procfile
+ web: bundle exec rails server -p $PORT
+ worker: bundle exec rake resque:work QUEUE=*
+
+ $ heroku scale web=1 worker=1
+ Scaling processes... done
17 slides/05_conclusion.md
@@ -0,0 +1,17 @@
+!SLIDE bullets incremental
+# Still Hungry? #
+
+* Add-ons
+* Buildpacks
+* Plugins
+
+!SLIDE bullets incremental
+# Winning #
+
+* focus on what matters
+* write once, run everywhere
+
+!SLIDE bullets
+# Questions? #
+
+* @geemus
Please sign in to comment.
Something went wrong with that request. Please try again.