Open MarcoMorawec opened 11 years ago
Will also need to set user for postgresql in the pgql console.
On 6/26/13, Marco Morawec notifications@github.com wrote:
Create a rails app:
rails new myApp
Get an app up on Heroku:
Gemfile
add --> gem 'pg'
database.yml Switch the default sqlite configuration to:
development: adapter: postgresql encoding: unicode database: blog_development pool: 5 host: localhost username: Marco password: # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: postgresql encoding: unicode database: blog_test pool: 5 host: localhost username: Marco password: production: adapter: postgresql encoding: unicode database: blog_production pool: 5 username: Marco password:
Heroku Terminal Login and app creation (install heroku toolbelt first):
heroku login $ cd ~/myapp $ heroku create
Deploy on Heroku: $ cd ~/myapp
-> do Github first git init git add . git commit -m "Initial commit" git remote add origin git@github.com:name/repo-name.git git push origin master
-> then push to Heroku git push heroku master heroku open (opens the browser with the url)
Reply to this email directly or view it on GitHub: https://github.com/MarcoMorawec/SiB-Dev-Team/issues/11
Create a rails app:
rails new myApp
Get an app up on Heroku:
Gemfile
add --> gem 'pg'
database.yml Switch the default sqlite configuration to:
railscast video here
Heroku Terminal Login and app creation (install heroku toolbelt first):
heroku login $ cd ~/myapp $ heroku create
Deploy on Heroku: $ cd ~/myapp
-> do Github first git init git add . git commit -m "Initial commit" git remote add origin git@github.com:name/repo-name.git git push origin master
-> then push to Heroku git push heroku master heroku open (opens the browser with the url)