While following the Ruby on Rails Tutorial I successfully git push heroku master. However I don't get the same output as the author - he sees the same "hello world" text that I see in my c9 environment. But I only get the following error:
Cannot GET /devonparsons/rails-tutorialasdofne.herokuapp.com?_c9_id=livepreview1&_c9_host=https://ide.c9.io
Due to the vague naming of this error it's kind of hard to troubleshoot. As far as I can tell by googling, Cannot GET is a result of there not being anything TO get. This question states the problem might be with your .gitignore file, so I tried commenting out some lines there, but it did not help.
I noticed that it the error string is mashing my 'random' subdomain (asdofne) against "rails-tutorial", which looks wrong, but I don't know what it means.
How do I fix this error?
I have gone through your heroku logs result and noticed that URL of your heroku application doesn't append with http://.
You need to append your heroku app url asdofne.herokuapp.com with http://
Results https://asdofne.herokuapp.com
The link looks funny. I remember that this happens when I create an HTML link and then forget to prepend it with http://. Could it be that something like that happened? It looks like it's taking a, what's supposed to be absolute url, and turning it into a relative one.
Related
I am facing an error with mongoLab, Heroku and deploying a parse server.
I followed this blog post : https://blog.heroku.com/archives/2016/2/4/running-parse-on-heroku
I visited Github, clicked the deploy button and then deployed my app to Heroku.
Next I installed parse using cocoa pods and then set my app keys to the same ones as my app deployed on Heroku like so:
Then, I wanted to test it out so I created a quick object and attempted to save it:
Then, I tried running my app and I get an error in the console:
Why is this happening? How can I fix this error? I am really lost because it appears I did everything right...
Any help greatly appreciated!
The problem in my case was that I had an #symbol in the password and I had not url-encoded it. When I escaped the symbol it started working.
AH! This was so stupid!
All I had to do was make sure my url included the mount
So it was my original_url/parse that got replaced in my sever url in my app delegate!
I am working with the Salesforce Ruby API which has a pretty good, but slightly dated set up guide. After installing the right gems it says to enter 'script/console' into the command line, and then enter '>> Salesforce::Contact.first' which should respond with a user id.
I have read other's post saying that script/console is no longer being used and to use rails console instead. That works fine, but when I enter '>> Salesforce::Contact.first' it complains that the syntax is wrong.
I also tried removing the >> from the front and it resulted in it saying "The filename, directory name, or volume label syntax is incorrect"
I there some other command besides '>> Salesforce::Contact.first' that I should be using?
Thanks
>> (and similar things) represent the prompt that you should see already on the screen for you. It's essentially the console saying "Go ahead, type something"
Try to 'mentally' strip stuff like that off from the beginning, including spaces. This would mean that the 'command' you're looking to execute is really,
Salesforce::Contact.first
Hope this helps.
I have installed Redmine on a shared Bluehost account and at first sight it seems to be working.
I followed both of these tutorials: https://my.bluehost.com/cgi/help/redmine and http://www.redmine.org/projects/redmine/wiki/RedmineInstall
But just as i started navigating around i noticed that there seem to be a routing problem because some of the pages are returning a 404 error code for a reason i don't understand yet.
The error log shows no information regarding this problem.
The url is on redmine.example.com , the user/pass are still admin/admin.
I have identified that any URL regarding a project is failing, for example:
http://redmine.example.com/projects/new
http://redmine.example.com/projects/21
http://redmine.example.com/projects/21/issues
(Currently i have reset the DB for privacy concerns)
In order to prove my theory that it was regarding the projects issue, i went into the projects controller file found in app/controllers/projects_controller.rb and tried to put some abort("Foo") here and there but i couldn't see my message with any of the links that are not working so i thought maybe the problem is not there and is probably in the routing process. So i checked the config/routes.rb file and comparing it with my local version they seem identical
I am not sure what to try next as i am not a Ruby developer. Let me know what kind of info you need in order to help debug this problem.
Eventually i got it working by using FastCGI.
In order to do that, i simply created a .htaccess file and a dispatcher.fcgi as shown in the answer here : Redmine 2 on Hostmonster apache fcgi: Rails application failed to start properly
Don't forget to SetEnv GEM_PATH to your ruby gems path in your .htaccess file and it should work after restarting (pkill dispatcher.fcgi)
I currently have a problem with a project.
it freezes before it shows the "Started GET ...." seems like it hits an infinite loop.
now i dont really have much experience with debuggers in ROR, can anyone recommend anything i can use to trace the exact origin of the problem. if i can get an error code somewhere then i might be able to fix it.
currently i am using webrick, i tried thin and it gave the exact same error.but i am willing to use anything to find the exact origin of this error.
it seems to be related to the project because all other projects works fine on my environment.
Take a look at the Rails guide on debugging.
Also try running the Rails console ("rails c"); if you can get to a command prompt at all that means that the issue is not in loading the Rails environment (e.g. a problem in application.rb) but is somewhere in the process of making a web request. If there's a failure it may give you a better error message.
I'm new to rails and heroku, and this may very well seem like a daft question, if so I appologise, but would appreciate someone at least telling me so.
I've followed the heroku "getting started" guide, and managed to deploy a copy of the rails default project. But the url preovided by heroku was http://radiant-ice-84.heroku.com, my question is this:
Does heroku assign a randomly generated url, or have I done something wrong because I don't recognise radiant-ice-84?
Before you closing this question, I would like to say that you in fact could specify the first when you create the app (no need to change again in the setting page) by using:
heroku create your-app-name
If you don't specify a name, Heroku generates one for you. You can change it in your app settings (as you noticed), although a lot of people just buy a domain name and map it to the Heroku-generated name.