Tommy's Terrifyingly Tender Tech Talks
- Create an account at Heroku.
- Create a new 'app' on Heroku (Apps > Create a new app).
- Give it a name
- Copy the git URL for the app
- Add the remote to your repo
git remote add heroku [GIT URL HERE]
- Your app's ready to push up to heroku!
- Your computer might not be though.
- begin;
0.
git push heroku master
&& return 0. If you have SSH problems, I feel bad for you son. I got 99 problems but SSH aint one.- This will look something like "you don't have access"
- Make sure you're logged in to Heroku on the command line
heroku login
&& retry
- Are the SSH keys in the computer yours? This is probably the problem if you're on one of our computers
0. Blow out the SSH keys:
rm ~/.ssh/id_*
0.heroku keys:add
to generate a new SSH key, and push them up to your Heroku account. 0. Retry
- Paperclip
0.
gem 'paperclip'
andgem 'aws-sdk'
0. Sign up for AWS, create an S3 bucket- Make sure you set the region to "US Standard"
- Check out:
app/models/user.rb
config/application.rb
app/views/users/new.html.erb
<form enctype="multipart/form-data">
- Figaro
gem 'figaro'
rails generate figaro:install
rake figaro:heroku
ENV['KEY_NAME']
- Create a new app at Facebook Developers
- Go to Settings > Advanced
- Whitelist your Oauth redirect URIs in the "Valid OAuth redirect URIs"
- You should put
localhost:3000
and your Heroku url in there.
- You should put
- Whitelist your Oauth redirect URIs in the "Valid OAuth redirect URIs"
- Go to Settings > Advanced
- Check out:
- Gemfile:
gem 'omniauth-facebook'
config/initializers/omniauth.rb
config/routes.rb
app/views/sessions/new.html.rb
app/controllers/oauth_callbacks.rb
app/models/user.rb
- Gemfile: