- What is it? What makes it special?
- Read-only file system
- Add-on services approach
- http://12factor.net/
- The Heroku toolbelt
- The 12 factor gem
- Adding an add-on
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cfc/ansible-101/provisioning ☣> bin/discourse | |
SSH password: | |
PLAY [localhost] *************************************************************** | |
TASK [setup] ******************************************************************* | |
ok: [localhost] | |
TASK [include] ***************************************************************** | |
included: /Users/bigfleet/cfc/ansible-101/roles/discourse/tasks/provision-azure.yml for localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# /etc/ssmtp.conf -- a config file for sSMTP sendmail. | |
# | |
# See the ssmtp.conf(5) man page for a more verbose explanation of the | |
# available options. | |
# | |
# The person who gets all mail for userids < 1000 | |
# Make this empty to disable rewriting. | |
root=postmaster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Publisher.create! do |pub| | |
pub.title = "Fire Dispatches" | |
pub.endpoint = "https://citygram-services.herokuapp.com/tulsa-fire-dispatch" | |
pub.active = true | |
pub.visible = false | |
pub.city = "Tulsa" | |
pub.icon = "fire-calls.png" | |
pub.state = "OK" | |
pub.description = "Recent Tulsa Fire Department Dispatches." | |
pub.tags = ["tulsa"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Publisher.create! do |pub| | |
pub.title = "Tree Plantings" | |
pub.endpoint = "https://location-changed-5314.herokuapp.com/tree-planting" | |
pub.active = false | |
pub.visible = false | |
pub.city = "Tulsa" | |
pub.icon = "leaf-collection.png" | |
pub.state = "OK" | |
pub.description = "List of trees planted along SF streets by Department of Public Works." | |
pub.tags = ["tulsa"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src/GBE/master > vagrant ssh | |
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64) | |
* Documentation: https://help.ubuntu.com/ | |
New release '14.04.3 LTS' available. | |
Run 'do-release-upgrade' to upgrade to it. | |
Welcome to your Vagrant-built virtual machine. | |
Last login: Fri Sep 14 06:23:18 2012 from 10.0.2.2 | |
vagrant@precise64:~$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jvanfleet@ip-10-4-2-118:~/bamboo/data/xml-data/build-dir/TT-RSPEC-JOB1 $ jruby -S bundle exec rake spec | |
/home/jvanfleet/.rbenv/versions/jruby-1.7.19/bin/jruby -I/home/jvanfleet/.rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/rspec-core-3.2.1/lib:/home/jvanfleet/.rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/rspec-support-3.2.2/lib /home/jvanfleet/.rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/rspec-core-3.2.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb | |
/home/jvanfleet/.rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/simplecov-0.9.2/lib/simplecov.rb:31 warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag | |
I, [2015-05-22T13:52:38.821000 #4094] INFO -- : Not reporting to Code Climate because ENV['CODECLIMATE_REPO_TOKEN'] is not set. | |
/home/jvanfleet/.rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/simplecov-html-0.9.0/lib | |
/home/jvanfleet/.rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/simplecov-0.9.2/lib | |
/home/jvanfleet/bamboo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add literally these into env.example, to help newbies that follow you on this app. | |
# Put the real values into .env | |
MAILCHIMP_API_KEY=key | |
MAILCHIMP_LIST_NAME="List name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def login(user=nil) | |
u = user || create(:user) | |
visit new_user_session_path | |
within("#new_user") do | |
fill_in 'Email', :with => u.email | |
fill_in 'Password', :with => '12345678' | |
click_button 'Log in' | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Begin MailChimp Signup Form --> | |
<div id="mc_embed_signup"> | |
<form action="http://itsbspoke.us2.list-manage.com/subscribe/post?u=8b4656bd4a093a3bcabfda08a&id=4f80c66e83" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> | |
<div class="mc-field-group"> | |
<label for="mce-EMAIL">Email Address </label> | |
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL"> | |
</div> | |
<div id="mce-responses" class="clear"> | |
<div class="response" id="mce-error-response" style="display:none"></div> |