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

cartographer on heroku #8

Open
buddhamagnet opened this issue Feb 20, 2011 · 5 comments
Open

cartographer on heroku #8

buddhamagnet opened this issue Feb 20, 2011 · 5 comments

Comments

@buddhamagnet
Copy link

Hi there - I have seen mention of some issues regarding heroku on stackoverflow but no obvious fix. I am running the gem locally and all is well - but as soon as I deploy to heroku it bails - checking the logs, the error is as follows:

NameError (uninitialized constant PagesController::Cartographer):
2011-02-20T13:56:26-08:00 app[web.1]: app/controllers/pages_controller.rb:39:in initialize_map' 2011-02-20T13:56:26-08:00 app[web.1]: app/controllers/pages_controller.rb:3:inindex'

...is there a fix for this in the pipeline? Great gem!

@nicinabox
Copy link
Contributor

Cartographer works just fine on Heroku. Would you mind posting your index method with the cartographer bits?

@joshuamiller
Copy link
Owner

The problem here I think is people following the install instructions which previously recommended a git method for vendoring the plugin that Heroku doesn't play too well with. Can you try to rm -rf vendor/plugins/cartographer and reinstall via rails plugin install ... and see how that works for you?

@dpsk
Copy link

dpsk commented Apr 25, 2011

I have exactly the same issue

NameError (uninitialized constant PagesController::Cartographer):
app/controllers/pages_controller.rb:11:in `home'

here is my home action

https://gist.github.com/940446

As you see its default code from readme. On local machine all works fine. Also im using API v3.

Chrome js console output this, but im doubt this is a reason of production error, besause this warnings appears even when im using pure js google api
Resource interpreted as Script but transferred with MIME type text/plain. markermanager_packed.js:-1
Resource interpreted as Image but transferred with MIME type text/html. csi:-1

@mnoble01
Copy link

mnoble01 commented May 7, 2011

I have the same issue.
Works fine on local machine, but I get heroku 500 error when deployed.
Heroku logs gives me: NameError (uninitialized constant MapperController::Cartographer)
Using rails 3.0.4, API v3.

Oh, and I also tried reinstalling using 'rails plugin install' instead of git clone. Error persisted.

@mnoble01
Copy link

mnoble01 commented May 7, 2011

Somehow, this worked:

I just deleted my .git file, and my remote repo, my heroku app, and did the entire git / heroku / local repo linking process over again. And the map displays! No more heroku 500 error.

Hope this helps someone else. I'm really not sure why it worked, but I'm glad my app is working.

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

No branches or pull requests

5 participants