group :development, :test do
gem 'launchy'
gem 'capybara'
gem 'pry-rails'
gem 'rspec'
gem 'rspec-rails'
gem 'guard'
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
1. Go to herokuapp dashboard | |
2. Go to your app --> then 'settings' | |
3. Click on 'Get add ons' --> Then find 'New Relic' and click to read the docs | |
4. Then from within your app in the terminal type: heroku addons:add newrelic:stark | |
5. Go back to your app on heroku and click on the "New Relic" icon. | |
6. Then in the page that opens up click on 'I agree' | |
7. Add this gem to your gemfile --> gem 'newrelic_rpm' in production - like so: | |
group :production do | |
gem 'newrelic_rpm' |
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
--- HEROKU STEPS to SET UP: --- | |
(Make sure you're all pushed/pulled on master before doing anything heroku) | |
1. git init | |
2. git add -A | |
3. git commit -m “blah, blah” | |
4. heroku create | |
5. To add heroku ENV keys/variables → (If there are any). |
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
---------------------------------------------------------------------- | |
#### Steps to create Rails App #### | |
---------------------------------------------------------------------- | |
1.) rails new app_name -d postgresql | |
'Jesse's way': rails g model Complaint descriptor:string address:string latitude:decimal longitude:decimal zip:integer | |
2.) database.yml → 'Phil's gist' | |
- put in: echo $USER in the terminal right after to make sure it works. | |
3.) rake db:create | |
4.) Insert ‘gem’ gist for development: |
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
#put $ echo $USER cgelinas in the terminal RIGHT AFTER putting this in your database.yml file! | |
development: &defaults | |
adapter: postgresql | |
encoding: unicode | |
pool: 5 | |
host: localhost | |
username: <%= `echo $USER`.chomp %> | |
password: | |
database: <%= File.basename(Rails.root) %>_development |