cedar

Serve using your own binary on Cedar, Heroku

怎甘沉沦 提交于 2019-12-04 08:38:37
I am trying to run Haskell on Heroku. I have compiled a binary app and created a Procfile as follows: web: ./app +RTS -N4 When I push it to Heroku, it says: -----> Heroku receiving push ! Heroku push rejected, no Cedar-supported app detected Now I think, Cedar does not support rolling in your binaries. Is there any way to deploy it? I have seen https://github.com/mwotton/heroku_haskell_demo . This guy seems to have deployed to Heroku but, it no longer works. Heroku sees the Gemfile s and thinks that it is a Ruby app and runs its default Procfile with Bundle install which fails obviously. You

Heroku error message no Cedar-supported app detected

主宰稳场 提交于 2019-12-04 05:47:14
So, I am running into more problems with heroku and this rails tutorial. The rails tutorial I am making had me develop a super basic app. They then had me create a bit bucket account. After this they had me create a Heroku account. Now they are asking me to push my origin master to my heroku host. When I do this, I am getting this error message and I cannot figure it out. Anyone have any hints as to how I could solve this? Thanks so much in advance! alopex@alopex-TH55-HD:~/work-space$ git push heroku master Counting objects: 66, done. Delta compression using up to 4 threads. Compressing

HardDisk Quota — Cedar Stack (Heroku)

喜你入骨 提交于 2019-12-03 19:51:39
问题 I know that the maximum slug size allowed is 200 MB. But what is the maximum disk space you can use per instance? Say I'm downloading a couple of files when the node process is running. 回答1: heroku run bash ~ $ df -h /tmp Filesystem Size Used Avail Use% Mounted on - 620G 6.1G 583G 2% /tmp You have approximately 620Gb in the /tmp folder. Any other folder doesn't really matter, as they're readonly anyway. 回答2: When I ran df on one of my instances just now (Cedar 14), I get 304G total, 240G

Is it possible to run my Rails app on Heroku with Ruby 1.9.3? If so, how?

故事扮演 提交于 2019-12-03 07:26:26
问题 I tried this tip: https://github.com/thoughtbot/laptop/pull/14#issuecomment-3192270 . On deploy I see -----> Using RUBY_VERSION: ruby-1.9.3-p0 But my logs show the environment variable is not respected INFO ruby 1.9.2 (2011-07-09) [x86_64-linux] Hacky / experimental solutions accepted! Edit: I am on the cedar stack. 回答1: Here's an update for everyone referencing this question... Heroku now allows you to specify your ruby version in your Gemfile, thanks to their addition to the latest version

Static website on Heroku Cedar

荒凉一梦 提交于 2019-12-03 06:56:46
I tried following the instructions here in order to create a static website on Heroku's Cedar stack. I have put the site up here . When I try to push the app (using "git push heroku master"), I get the following error: Kushs-MacBook-Air:hgtr kushpatel$ git push heroku master Counting objects: 7, done. Delta compression using up to 4 threads. Compressing objects: 100% (7/7), done. Writing objects: 100% (7/7), 1.29 KiB, done. Total 7 (delta 1), reused 0 (delta 0) -----> Heroku receiving push -----> Removing .DS_Store files ! Heroku push rejected, no Cedar-supported app detected To git@heroku.com

给全文搜索引擎Manticore (Sphinx) search 增加中文分词

纵饮孤独 提交于 2019-12-03 05:48:13
文章首发于我的技术博客:你可以在上面看到更多的 Python教程 和 python爬虫 Sphinx search 是一款非常棒的开源全文搜索引擎,它使用C++开发,索引和搜索的速度非常快,我使用sphinx的时间也有好多年了。最初使用的是coreseek,一个国人在sphinxsearch基础上添加了mmseg分词的搜索引擎,可惜后来不再更新,sphinxsearch的版本太低,bug也会出现;后来也使用最新的sphinxsearch,它可以支持几乎所有语言,通过其内置的ngram tokenizer对中文进行索引和搜索。 但是,像中文、日文、韩文这种文字使用ngram还是有很大弊端的: 当Ngram=1时,中文(日文、韩文)被分解成一个个的单字,就像把英文分解成一个个字母那样。这会导致每个单字的索引很长,搜索效率下降,同时搜索结果习惯性比较差。 当Ngram=2或更大时,会产生很多无意义的“组合”,比如“的你”、“为什”等,导致索引的 字典 、索引文件等非常大,同时也影响搜索速度。 基于以上弊端,为中日韩文本加入分词的tokenizer是很有必要的。 于是决定来做这件事。先去Sphinxsearch网站去看看,发现它已经发布了新的3.x版本,而且加入了很多很棒的特性,然而它从Sphinxsearch 3.x 开始,暂时 不再开源 . 不过

Heroku cedar stack, thin and eventmachine

妖精的绣舞 提交于 2019-12-02 21:08:47
问题 Do Heroku Cedar stack apps require thin and eventmachine in Gemfile? gem 'thin' gem 'eventmahine' What about versions? On other stacks they were installed automatically? 回答1: Yes, you need to specify any gem that you want to use on Cedar stack unlike on Bamboo which had preinstalled gems. Go with whatever version your application needs, 来源: https://stackoverflow.com/questions/8362303/heroku-cedar-stack-thin-and-eventmachine

Is it possible to run my Rails app on Heroku with Ruby 1.9.3? If so, how?

纵饮孤独 提交于 2019-12-02 20:58:51
I tried this tip: https://github.com/thoughtbot/laptop/pull/14#issuecomment-3192270 . On deploy I see -----> Using RUBY_VERSION: ruby-1.9.3-p0 But my logs show the environment variable is not respected INFO ruby 1.9.2 (2011-07-09) [x86_64-linux] Hacky / experimental solutions accepted! Edit: I am on the cedar stack. Here's an update for everyone referencing this question... Heroku now allows you to specify your ruby version in your Gemfile, thanks to their addition to the latest version of bundler. First run: gem install bundler --pre then add ruby '1.9.3' to your Gemfile as such. source 'http

“rake aborted! stack level too deep” while deploying to Heroku

痴心易碎 提交于 2019-12-02 20:37:37
My website used to be working and Heroku precompiled the assets and everything. Now, seemingly out of nowhere, I started to get this message on deploy: Preparing app for Rails asset pipeline Running: rake assets:precompile mkdir -p /tmp/build_31cexir1p9pwn/public/assets mkdir -p /tmp/build_31cexir1p9pwn/public/assets/icons mkdir -p /tmp/build_31cexir1p9pwn/public/assets/icons mkdir -p /tmp/build_31cexir1p9pwn/public/assets mkdir -p /tmp/build_31cexir1p9pwn/public/assets (in /tmp/build_31cexir1p9pwn) mkdir -p /tmp/build_31cexir1p9pwn/public/assets mkdir -p /tmp/build_31cexir1p9pwn/public/assets

Heroku_can't upgrade to Cedar-14

青春壹個敷衍的年華 提交于 2019-12-02 11:52:25
As requested on Heroku, I am trying to upgrade from Cedar-10 to Cedar-14, but in vain. On my console, When I execute heroku stack:set cedar-14 I get this: `stack:set` is not a heroku command. Even if I've already installed the latest version of heroku toolbelt as proposed there (I am on Windows), I get the same error message Many thanks It looks like your current heroku version isn't up to date. Things you can try: heroku update If that doesn't work gem uninstall heroku Reinstall the gem or the heroku toolbelt If that doesn't work: which heroku Delete the executable at the path listed by the