Skip to content
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

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

Open
spata opened this issue Oct 14, 2013 · 0 comments
Open

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

spata opened this issue Oct 14, 2013 · 0 comments

Comments

@spata
Copy link

spata commented Oct 14, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant