Heroku + toto

部署

$ git clone git://github.com/cloudhead/dorothy.git myblog

$ cd myblog/

$ heroku create -s bamboo mybog

$ git push heroku master

官方给出的是

$ heroku create myblog

这个默认是Cedar

Cedar 只支持 MRI 1.9.2

Bamboo 支持 REE 1.8.7和MRI 1.9.2

toto是两年前的ruby,使用Cedar无法部署成功

$ git push heroku master

会产生如下出错信息

-----> Heroku receiving push
 !     Heroku push rejected, no Cedar-supported app detected

参考官方文档

https://devcenter.heroku.com/articles/stack

新建文章

$ gem install toto

$ rake new

$ git add articles/

$ git commit -m "add article ......"

$ git push heroku master

中文文件名

slug: hello-world

中文问题

查看现在版本

$ heroku stack

把在heroku上的应用Ruby版本降到1.8

$ heroku stack:migrate bamboo-ree-1.8.7

$ git push heroku master

参考

http://blog.csdn.net/workxp/article/details/6752799

https://devcenter.heroku.com/articles/bamboo

原文地址:https://www.cnblogs.com/scige/p/2635506.html