cloudhead / toto

the 10 second blog-engine for hackers
MIT License
1.49k stars 244 forks source link

Having a lot of trouble getting toto to work on heroku #133

Open spata opened 11 years ago

spata commented 11 years ago

Hello,

I don't know if this counts as an issue, but I can get dorothy to work fine on localhost:3000 using thin, but when I set it up using heroku (following all available tutorials that make it look so simple) I get this: http://spatablog.herokuapp.com/

Internal Server Error (): could not find expected ':' while scanning a simple key at line 5 column 1 WEBrick/1.3.1 (Ruby/2.0.0/2013-06-27) at spatablog.herokuapp.com:8

I think it is a Rakefile issue(even though the error says unknown, all similar errors on google seem to be rake-related), but I have made no changes to it. I have tried cloning dorothy multiple times.

But here is the begining of the Rakefile anyways: require 'toto'

@config = Toto::Config::Defaults

task :default => :new

desc "Create a new article." task :new do title = ask('Title: ') slug = title.empty?? nil : title.strip.slugize

article = {'title' => title, 'date' => Time.now.strftime("%d/%m/%Y")}.to_yaml article << "\n" article << "Once upon a time...\n\n"

...and so on

I want this to work and I don't know what to do because I am new to ruby and heroku.

UPDATE:

I found out that it works the first time. So it is only after I push any changes that this happens. I still don't know what could be wrong though :/

Please help!

Steph