Skip to content

Instantly share code, notes, and snippets.

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'
--- 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).
----------------------------------------------------------------------
#### 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:
@ghostropic
ghostropic / .travis.yml
Last active August 29, 2015 14:00
.travis.yml config
language: ruby
rvm:
- 2.1.0
before_script:
- "sh -e /etc/init.d/xvfb start"
- "export DISPLAY=:99.0"
- "export JASMINE_SPEC_FORMAT=documentation"
env:
- PG_USERNAME='postgres'
@ghostropic
ghostropic / gemfile.md
Last active August 29, 2015 13:58 — forked from zioplox11/Gemfile
gemfile for dev

gemfile for dev/test

group :development, :test do
  gem 'launchy'
  gem 'capybara'
  gem 'pry-rails'
  gem 'rspec'
  gem 'rspec-rails'
 gem 'guard'

HEROKU STEPS to SET UP:

git init
git add -A
git commit -m “”
heroku create
heroku keys:add  → If there are any.
git push heroku master
#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
@ghostropic
ghostropic / Rails_setup_dev.md
Last active August 29, 2015 13:58 — forked from catm705/Gem for Development and Test
Rails setup for dev

Rails setup for dev

rails new app_name -d postgresql

Given that you want to use postgresql. exclude -d postgresql to setup with SQLite.

  • edit yml (if applicable)
  • edit gemfile --> see 'gemfile for dev/test' gist