Other Pages

Expand All

create_a_heroku_account.step

important "Skip this step if you are in the Intro to Programming course."

message "We'll be using Heroku to put our apps online because it's simple and free for the tier we'll be needing."

step "Visit the Heroku web site" do
  url "http://heroku.com"
end

step "Create an account" do
  message "Click the big **Sign Up** button (it's about halfway down the page)"
  message "Enter your email address."
  important "Use the same email address for heroku, git, github, and ssh. Be sure to use an email account you can log into immediately."
end

step "Activate your account" do

  message "Heroku will send you an activation email. Open it and click on the activation link. It will take you to the Heroku site. Enter and confirm your password. Hit Save."

end

step "Install the Heroku toolbelt" do

  message "Visit https://toolbelt.heroku.com/, click the download link, and install."

  verify do
    console "heroku version"
    fuzzy_result <<-TEXT
      heroku-toolbelt/{FUZZY}3.30.6 (x86_64-darwin10.8.0) ruby/1.9.3{/FUZZY}
      {FUZZY}You have no installed plugins.{/FUZZY}
    TEXT
  end
  message "Windows users, if `heroku version` doesn't work, open a new terminal window after the heroku installer has finished."
end

step "Add your SSH key to your Heroku account" do
  console "heroku keys:add"

  message "Enter your Heroku email and password, if prompted, and accept the defaults."
end

section 'Optional Step: Create a GitHub account' do
  message "Since by now you should have both Git and an SSH key, you can optionally [Create a Github account](create_a_github_account) to share code with your friends."

  message "You don't need a GitHub account to complete the InstallFest, or the Intro To Rails, Job Board, or Message Board courses."
end

next_step "create_a_rails_app"