librelist archives

« back to archive

Re: Deploying to Heroku Problem!

Re: Deploying to Heroku Problem!

From:
Daniel Cuttridge
Date:
2011-12-31 @ 23:20
Hi,

After finding nesta, I was just overwhelmed... I love Ruby and the idea of
being able to use a CMS built in Ruby with the Sinatra Gem is awesome.
Using things such as markdown, haml and Sass is also awesome as I've never
had an opportunity to do so yet!

So I followed the deployment guide and changed the content-demo to content
in the config. After I deployed to heroku I saw my app was there, however
when I go to the Heroku URL that is given to me I get the following text on
the page.

Sorry, something went wrong

An error occurred whilst we were trying to serve your page. Please bear
with us, or try another page.


I tried the whole process again a few more times and I kept getting the
same outcome. Can't see what I'm doing wrong here to be honest, I followed
the guide to a T

Re: [nesta] Re: Deploying to Heroku Problem!

From:
Graham Ashton
Date:
2012-01-01 @ 03:22
On 31 Dec 2011, at 23:20, Daniel Cuttridge <iamdacu@gmail.com> wrote:

> So I followed the deployment guide and changed the content-demo to 
content in the config. After I deployed to heroku I saw my app was there, 
however when I go to the Heroku URL that is given to me I get the 
following text on the page.
> 
> Sorry, something went wrong
> 
Hi Daniel. Glad you like it.

If Wynn's suggestion doesn't fix it we'll need a bit more info to work out
what it is.

Run the ‘heroku log‘ command (it might be "logs" - I can't remember) and 
then reload the page. You should see a backtrace that will give us a clue 
to what went wrong (but I suspect Wynn is right, and that Nesta can't find
your content in production).

Cheers,
Graham

Re: [nesta] Re: Deploying to Heroku Problem!

From:
Wynn Netherland
Date:
2011-12-31 @ 23:57
If you're running your content from content-demo, be sure and set that 
path under the :production section of your config/config.yml.

---
Wynn Netherland
web: http://wynn.fm
twitter / skype / facebook: pengwynn
linkedin: http://linkedin.com/in/netherland



On Saturday, December 31, 2011 at 5:20 PM, Daniel Cuttridge wrote:

> 
> 
> Hi,
> 
> After finding nesta, I was just overwhelmed... I love Ruby and the idea 
of being able to use a CMS built in Ruby with the Sinatra Gem is awesome. 
Using things such as markdown, haml and Sass is also awesome as I've never
had an opportunity to do so yet! 
> 
> So I followed the deployment guide and changed the content-demo to 
content in the config. After I deployed to heroku I saw my app was there, 
however when I go to the Heroku URL that is given to me I get the 
following text on the page. 
> 
> Sorry, something went wrong
> 
> An error occurred whilst we were trying to serve your page. Please bear 
with us, or try another page.
> 
> 
> 
> 
> 
> 
> I tried the whole process again a few more times and I kept getting the 
same outcome. Can't see what I'm doing wrong here to be honest, I followed
the guide to a T 

Re: Deploying to Heroku Problem!

From:
Daniel Cuttridge
Date:
2012-01-01 @ 13:28
I tried to run this on my 9292 port just to see what happened and
unsurprisingly I got a bit more info than what Heroku gave me...

*NoMethodError* at */*undefined method `chomp' for nil:NilClass

   - *file:* models.rb
   -  *location:* block in parse_file
   - *line: *145


from what I can see... This looks like it's something going on in the
actual Nesta installation folder, as it's giving me this as a source.

C:/Ruby192/lib/ruby/gems/1.9.1/gems/nesta-0.9.11/lib/nesta/models.rb

On Sat, Dec 31, 2011 at 11:17 PM, Daniel Cuttridge <iamdacu@gmail.com>wrote:

> Hi,
>
> After finding nesta, I was just overwhelmed... I love Ruby and the idea of
> being able to use a CMS built in Ruby with the Sinatra Gem is awesome.
> Using things such as markdown, haml and Sass is also awesome as I've never
> had an opportunity to do so yet!
>
> So I followed the deployment guide and changed the content-demo to content
> in the config. After I deployed to heroku I saw my app was there, however
> when I go to the Heroku URL that is given to me I get the following text on
> the page.
>
> Sorry, something went wrong
>
> An error occurred whilst we were trying to serve your page. Please bear
> with us, or try another page.
>
>
> I tried the whole process again a few more times and I kept getting the
> same outcome. Can't see what I'm doing wrong here to be honest, I followed
> the guide to a T.
>
>
>
>

Re: [nesta] Re: Deploying to Heroku Problem!

From:
Graham Ashton
Date:
2012-01-01 @ 13:40
Make sure you haven't got any empty files in the content directory, or any
files that don't have a heading defined.

I haven't checked the line number in your backtrace, but I suspect that's 
what it is. I really ought to improve that error message...

Graham

On 1 Jan 2012, at 13:28, Daniel Cuttridge wrote:

> I tried to run this on my 9292 port just to see what happened and 
unsurprisingly I got a bit more info than what Heroku gave me...
> 
> NoMethodError at /
> undefined method `chomp' for nil:NilClass
> 	• file: models.rb
>    
> 	•   location: block in parse_file 
>   
> 	•  line: 145
> 
> 
> from what I can see... This looks like it's something going on in the 
actual Nesta installation folder, as it's giving me this as a source.
> 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/nesta-0.9.11/lib/nesta/models.rb