-
Notifications
You must be signed in to change notification settings - Fork 7
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
Superhero Name App: https://super-me.herokuapp.com/ #12
base: master
Are you sure you want to change the base?
Conversation
…divse me of why I'm unable to run this app on Heroku
Two things:
|
Just submitted new pull request, files should be visible this time. Not sure what happened originally. Also,
|
Also, I just noticed that somehow one of my rough drafts, "SuperName.erb" slipped in there. It's a duplicate of the final draft name.erb. It can be disregarded.
|
@@ -0,0 +1,17 @@ | |||
require 'rubygems' | |||
require 'Sinatra' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not positive that it matters, but try making this lower-case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying now
Sent from my iPhone
On Nov 2, 2014, at 11:22 PM, Aidan Feldman [email protected] wrote:
In Daryl_Shy_SPA/supername.rb:
@@ -0,0 +1,17 @@
+require 'rubygems'
+require 'Sinatra'
I'm not positive that it matters, but try making this lower-case.—
Reply to this email directly or view it on GitHub.
Try moving all of the files to the top level of the project directory – this is where Heroku will look for them.
Why not delete the file from this repository then? |
OHHH.. That may be the key. In production all the tuts said put them in a view and public file. Trying this now. Thanks for the help btw Sent from my iPhone
|
What do you mean by "them"? Templates and CSS/JS/assets, respectively, but not the Gemfile/config.ru/server code. |
...and no problem! |
'Them' as in views in a view folder and images and stylessheets in a public folder Sent from my iPhone
|
Sorry, let me rephrase: move everything out of the |
oh, ok. will redo. on a separate note, I'm suddenly getting this bundler error: ! Push rejected, failed to compile Ruby app not sure why. i tried taking the bundler gem out of the gem file and taking the requirement out of the main rb file. had no affect at all. this error did not pop up until after i added the require 'bundler/setup' requirement to the main .rb file and the bundler/setup gem to the gem file. taking it out; adding it back in, has no affect either way, so idk what's happening when it was compiling before.
|
Are you able to run the app locally (with |
I've not tried running it with rackup, I just run it with a local server like slim or shotgun. Sent from my iPhone
|
Yeah, make sure it works with |
Ok, will do Sent from my iPhone
|
require 'bundler/setup' | ||
|
||
|
||
get '/index' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want this route to show up at https://shrouded-brushlands-2575.herokuapp.com/ instead of https://shrouded-brushlands-2575.herokuapp.com/index, just change it to '/'
.
I've been working for hours after finally getting my app to push up to heroku master to also get it to run. I keep getting this error in the web browser:
"An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details."
And this when I check the heroku logs....