Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panda, Tiger, and Eagle #8

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Panda, Tiger, and Eagle #8

wants to merge 13 commits into from

Conversation

meltar
Copy link

@meltar meltar commented Apr 24, 2013

You can see the site with the panda and tiger changes here: http://protected-lowlands-4515.herokuapp.com/

I was not able to configure the postgres connection info to work on Heroku, but the eagle portion works locally. How can I make it work locally with the yml file and on Heroku without it?

@@ -4,3 +4,6 @@ gem 'rake'
gem 'activesupport'
gem 'sinatra'
gem 'sinatra-contrib'
gem 'eventmachine', '~> 1.0.0.beta.4.1'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious -- why event machine?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first thing I had to do after cloning the repository and trying to run theweb.rb was handle this error:
http://stackoverflow.com/questions/6927907/ruby-problem-installing-eventmachine-under-windows-7

@jwo
Copy link
Member

jwo commented Apr 24, 2013

For heroku, I think this is the issue:

It appears Heroku only creates its config/database.yml if you have a folder config under source control. Not explained in docs. [http://stackoverflow.com/a/12886273/363881]

So, if you add a .gitkeep to your local config directory, add it, commit it, and push to github/heroku, I bet it'll work.

Normally, if you copy the config/database.yml.sample to config/database.yml (rather than move), it'll stay there, and then so would the config directory, and heroku would write it out.

It's just-that-simple 🎉

@meltar
Copy link
Author

meltar commented Apr 24, 2013

Thanks for the feedback. I'll give this a try tonight.

@meltar
Copy link
Author

meltar commented Apr 28, 2013

The eagle version of the program should work on Heroku now.

@jwo
Copy link
Member

jwo commented Apr 29, 2013

That's a pain! Way to go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants