My app works fine on rails server but when I deploy it on Heroku I get this SyntaxError. The strangest thing is that I don’t have any /app/app directory. Why is it twice?
You can check all the code here.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
/approot is something that heroku does (just interpret the first/appas the absolute path to your app). That’s not the issue here, instead it’s that you added a whitespace where no whitespace is allowed:This shouldn’t have worked on your machine in the first place (maybe previous Ruby versions accepted that Syntax, but Ruby 1.9 won’t for sure).