cloudhead / cloudhead/toto

Having a lot of trouble getting toto to work on heroku

Open
#133 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
1.5k
Forks
240
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.