Skip to content

Instantly share code, notes, and snippets.

@timani
Created June 30, 2016 05:33
Show Gist options
  • Save timani/4573364e1991e4b4e52e685114bc4a38 to your computer and use it in GitHub Desktop.
Save timani/4573364e1991e4b4e52e685114bc4a38 to your computer and use it in GitHub Desktop.
tmunyaradzi:GSS tmunyaradzi$ mkdir pcf-onboarding
tmunyaradzi:GSS tmunyaradzi$ cd pcf-onboarding
tmunyaradzi:pcf-onboarding tmunyaradzi$ vim Gemfile
tmunyaradzi:pcf-onboarding tmunyaradzi$ bundle install
[!] There was an error parsing `Gemfile`: Undefined local variable or method `bookbindery' for Gemfile. Bundler cannot continue.
# from /Users/tmunyaradzi/Pivotal/GSS/pcf-onboarding/Gemfile:2
# -------------------------------------------
# source 'https://rubygems.org'
> bookbindery
#
# -------------------------------------------
tmunyaradzi:pcf-onboarding tmunyaradzi$ vim Gemfile
tmunyaradzi:pcf-onboarding tmunyaradzi$ bundle install
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies....
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.9.0
Using thread_safe 0.3.5
Using addressable 2.4.0
Using ansi 1.5.0
Using multi_json 1.12.1
Using multipart-post 2.0.0
Using builder 3.2.2
Installing excon 0.50.1
Using formatador 0.2.5
Using mini_portile2 2.0.0
Using ipaddress 0.8.3
Using sass 3.4.22
Using git 1.2.9.1
Using coffee-script-source 1.10.0
Using execjs 2.7.0
Using chunky_png 1.3.6
Using rb-fsevent 0.9.7
Using ffi 1.9.10
Using tilt 1.4.1
Using kramdown 1.11.1
Using bundler 1.12.1
Using mime-types-data 3.2016.0521
Using rack 1.6.4
Using erubis 2.7.0
Using uber 0.0.15
Using thor 0.19.1
Using hike 1.2.3
Using eventmachine 1.2.0.1
Using http_parser.rb 0.6.0
Using rouge 1.11.1
Using puma 3.4.0
Using rack-rewrite 1.5.1
Using redcarpet 3.2.3
Using libv8 3.16.14.15
Using ref 2.0.0
Using tzinfo 1.2.2
Installing css_parser 1.4.5
Using elasticsearch-api 1.0.18
Using faraday 0.9.2
Using fog-core 1.40.0
Using nokogiri 1.6.7.2
Using font-awesome-sass 4.6.2
Using compass-core 1.0.3
Using compass-import-once 1.0.5
Using coffee-script 2.4.1
Using uglifier 2.7.2
Using rb-inotify 0.9.7
Using haml 4.0.7
Using mime-types 3.1
Using rack-test 0.6.3
Using rack-livereload 0.3.16
Using hooks 0.4.1
Using sprockets 2.12.4
Using em-websocket 0.5.1
Using therubyracer 0.12.2
Using activesupport 4.2.6
Using elasticsearch-transport 1.0.18
Using fog-json 1.0.2
Using fog-xml 0.1.2
Using xpath 2.0.0
Using compass 1.0.3
Using listen 3.0.8
Using sprockets-helpers 1.1.0
Using sprockets-sass 1.3.1
Using padrino-support 0.12.8
Using elasticsearch 1.0.18
Using fog-aws 0.7.6
Using capybara 2.4.4
Using padrino-helpers 0.12.8
Using middleman-core 3.4.1
Using middleman-sprockets 3.4.2
Using middleman-livereload 3.4.6
Using middleman-syntax 2.1.0
Using middleman 3.4.1
Using bookbindery 9.12.0
Bundle complete! 1 Gemfile dependency, 77 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
tmunyaradzi:pcf-onboarding tmunyaradzi$ ls -la
total 24
drwxr-xr-x 5 tmunyaradzi staff 170 Jun 29 21:27 .
drwxr-xr-x 8 tmunyaradzi staff 272 Jun 29 21:24 ..
drwxr-xr-x 3 tmunyaradzi staff 102 Jun 29 21:26 .bundle
-rw-r--r-- 1 tmunyaradzi staff 49 Jun 29 21:27 Gemfile
-rw-r--r-- 1 tmunyaradzi staff 4789 Jun 29 21:27 Gemfile.lock
tmunyaradzi:pcf-onboarding tmunyaradzi$ bundle exec bookbinder generate cloud-documentation
Generating book at /Users/tmunyaradzi/Pivotal/GSS/pcf-onboarding/cloud-documentation...
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies.......
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.9.0
Using thread_safe 0.3.5
Using addressable 2.4.0
Using ansi 1.5.0
Using multi_json 1.12.1
Using multipart-post 2.0.0
Using builder 3.2.2
Using excon 0.50.1
Using formatador 0.2.5
Using mini_portile2 2.0.0
Using ipaddress 0.8.3
Using sass 3.4.22
Using git 1.2.9.1
Using coffee-script-source 1.10.0
Using execjs 2.7.0
Using chunky_png 1.3.6
Using rb-fsevent 0.9.7
Using ffi 1.9.10
Using tilt 1.4.1
Using kramdown 1.11.1
Using bundler 1.12.1
Using mime-types-data 3.2016.0521
Using rack 1.6.4
Using erubis 2.7.0
Using uber 0.0.15
Using thor 0.19.1
Using hike 1.2.3
Using eventmachine 1.2.0.1
Using http_parser.rb 0.6.0
Using rouge 1.11.1
Using puma 3.4.0
Using rack-rewrite 1.5.1
Using redcarpet 3.2.3
Using libv8 3.16.14.15
Using ref 2.0.0
Using tzinfo 1.2.2
Using css_parser 1.4.5
Using elasticsearch-api 1.0.18
Using faraday 0.9.2
Using fog-core 1.40.0
Using nokogiri 1.6.7.2
Using font-awesome-sass 4.6.2
Using compass-core 1.0.3
Using compass-import-once 1.0.5
Using coffee-script 2.4.1
Using uglifier 2.7.2
Using rb-inotify 0.9.7
Using haml 4.0.7
Using mime-types 3.1
Using rack-test 0.6.3
Using rack-livereload 0.3.16
Using hooks 0.4.1
Using sprockets 2.12.4
Using em-websocket 0.5.1
Using therubyracer 0.12.2
Using activesupport 4.2.6
Using elasticsearch-transport 1.0.18
Using fog-json 1.0.2
Using fog-xml 0.1.2
Using xpath 2.0.0
Using compass 1.0.3
Using listen 3.0.8
Using sprockets-helpers 1.1.0
Using sprockets-sass 1.3.1
Using padrino-support 0.12.8
Using elasticsearch 1.0.18
Using fog-aws 0.7.6
Using capybara 2.4.4
Using padrino-helpers 0.12.8
Using middleman-core 3.4.1
Using middleman-sprockets 3.4.2
Using middleman-livereload 3.4.6
Using middleman-syntax 2.1.0
Using middleman 3.4.1
Using bookbindery 9.12.0
Bundle complete! 1 Gemfile dependency, 77 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Successfully generated book at /Users/tmunyaradzi/Pivotal/GSS/pcf-onboarding/cloud-documentation
tmunyaradzi:pcf-onboarding tmunyaradzi$ ls -la
total 24
drwxr-xr-x 6 tmunyaradzi staff 204 Jun 29 21:28 .
drwxr-xr-x 8 tmunyaradzi staff 272 Jun 29 21:24 ..
drwxr-xr-x 3 tmunyaradzi staff 102 Jun 29 21:26 .bundle
-rw-r--r-- 1 tmunyaradzi staff 49 Jun 29 21:27 Gemfile
-rw-r--r-- 1 tmunyaradzi staff 4789 Jun 29 21:27 Gemfile.lock
drwxr-xr-x 8 tmunyaradzi staff 272 Jun 29 21:28 pcf-onboarding
tmunyaradzi:pcf-onboarding tmunyaradzi$ cat pcf-onboarding/
.bundle/ Gemfile Gemfile.lock bin/ config.yml master_middleman/
tmunyaradzi:pcf-onboarding tmunyaradzi$ cat pcf-onboarding/config.yml
---
book_repo: ''
public_host: ''
tmunyaradzi:pcf-onboarding tmunyaradzi$ cd ..
tmunyaradzi:pcf-book-onboarding tmunyaradzi$ git clone https://github.com/pivotal-cf/docs-pcf-dev.git
Cloning into 'docs-pcf-dev'...
remote: Counting objects: 286, done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 286 (delta 7), reused 0 (delta 0), pack-reused 268
Receiving objects: 100% (286/286), 64.14 KiB | 0 bytes/s, done.
Resolving deltas: 100% (180/180), done.
Checking connectivity... done.
tmunyaradzi:pcf-book-onboarding tmunyaradzi$ cd pcf-onboarding/
tmunyaradzi:pcf-onboarding tmunyaradzi$ bookbinder bind local
Gathering pivotal-cf/docs-pcf-dev
copying /Users/tmunyaradzi/Pivotal/GSS/pcf-book-onboarding/docs-pcf-dev
Checking for broken links...
No broken links!
Bookbinder bound your book into /Users/tmunyaradzi/Pivotal/GSS/pcf-book-onboarding/pcf-onboarding/final_app
tmunyaradzi:pcf-book-onboarding tmunyaradzi$ git clone https://github.com/pivotal-cf/docs-pcf-dev.git
Cloning into 'docs-pcf-dev'...
remote: Counting objects: 286, done.
require 'pathname'
remote: Compressing objects: 100% (18/18), done.
remote: Total 286 (delta 7), reused 0 (delta 0), pack-reused 268
Receiving objects: 100% (286/286), 64.14 KiB | 0 bytes/s, done.
Resolving deltas: 100% (180/180), done.
Checking connectivity... done.
tmunyaradzi:pcf-book-onboarding tmunyaradzi$ bookbinder bind local
tmunyaradzi:pcf-book-onboarding tmunyaradzi$ cd pcf-onboarding/
tmunyaradzi:pcf-onboarding tmunyaradzi$ bookbinder bind local
Gathering pivotal-cf/docs-pcf-dev
copying /Users/tmunyaradzi/Pivotal/GSS/pcf-book-onboarding/docs-pcf-dev
Checking for broken links...
No broken links!
Bookbinder bound your book into /Users/tmunyaradzi/Pivotal/GSS/pcf-book-onboarding/pcf-onboarding/final_app
tmunyaradzi:pcf-onboarding tmunyaradzi$ cd final_app/
tmunyaradzi:final_app tmunyaradzi$ cat config.ru
require 'pathname'
require './rack_app'
require './mail_sender'
mail_client = Bookbinder::MailSender.new(ENV['SENDGRID_USERNAME'],
ENV['SENDGRID_API_KEY'],
{to: ENV['FEEDBACK_TO'], from: ENV['FEEDBACK_FROM']})
run Bookbinder::RackApp.new(Pathname('redirects.rb'), mail_client).app
tmunyaradzi:final_app tmunyaradzi$ vim config.ru
tmunyaradzi:final_app tmunyaradzi$ rackup
Puma starting in single mode...
* Version 3.4.0 (ruby 2.3.0-p0), codename: Owl Bowl Brawl
* Min threads: 0, max threads: 16
* Environment: development
* Listening on tcp://localhost:9292
Use Ctrl-C to stop
127.0.0.1 - - [29/Jun/2016:21:45:24 -0700] "GET / HTTP/1.1" 200 - 0.0081
127.0.0.1 - - [29/Jun/2016:21:45:24 -0700] "GET /javascripts/all.js HTTP/1.1" 200 - 0.0034
127.0.0.1 - - [29/Jun/2016:21:45:24 -0700] "GET /stylesheets/all.css HTTP/1.1" 200 - 0.0109
127.0.0.1 - - [29/Jun/2016:21:45:24 -0700] "GET /stylesheets/print.css HTTP/1.1" 200 - 0.0028
127.0.0.1 - - [29/Jun/2016:21:45:24 -0700] "GET /fonts/font-awesome/fontawesome-webfont.woff2?v=4.6.2 HTTP/1.1" 200 - 0.0082
127.0.0.1 - - [29/Jun/2016:21:45:24 -0700] "GET /images/favicon.ico HTTP/1.1" 404 - 0.0015
tmunyaradzi:final_app tmunyaradzi$ ls -la
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment