heroku

Update Node version for Meteor app deployed to Heroku

与世无争的帅哥 提交于 2020-01-05 03:58:26
问题 I have a Meteor application deployed to Heroku. To prevent the Denial of Service (DoS) vulnerability, Heroku suggested updating the Node.js version for my application. I want to update the meteor version to 1.2.1 and node version to 4.8.4 on Heroku. I have set the node version in packages.json as well but it was not updated after deployment. How can I update meteor and node on Heroku? I tried the following command: heroku run meteor update --release 1.2.1 -a myappname but it throws the

Installing GEOS on heroku cedar

耗尽温柔 提交于 2020-01-05 03:50:25
问题 we have troubles in installing the GEOS library on heroku cedar stack. We followed this guide: https://devcenter.spacialdb.com/Heroku.html and it didn't work. We noticed that the path (/app/tmp/geos) stored in the provided geos binaries was wrong, so we built our own binaries with vulcan. We changed parameters (BUNDLE_BUILD__RGEO) accordingly, but we weren't able to make it work. We even hardcoded geos paths in our custom rgeo gem without any success We also tried other buildscripts (https:/

Heroku multiple web processes

巧了我就是萌 提交于 2020-01-05 02:54:48
问题 I am working with node.js and heroku and would like to have more than one webprocess running. In the Procfile I have it looking like this: web: node web.js web: node differentWeb.js However when I run it it will only run the last of the two. Is there a way to do this? 回答1: An application on Heroku can only have one process named web that gets routed HTTP requests. If you need another web process then that would be another application on Heroku. 来源: https://stackoverflow.com/questions/11890856

Issue validating user time zone for Rails app on Heroku

删除回忆录丶 提交于 2020-01-05 02:43:08
问题 I'm following Ryan Bates' tutorial on adding time zones to a rails app. http://railscasts.com/episodes/106-time-zones-revised (It's a good tutorial, by the way) Anyway, Ryan says it's a good idea to validate the submitted time zone with the ones that Rails knows about. He put this rule into the users' model: validates_inclusion_of :time_zone, in: ActiveSupport::TimeZone.zones_map(&:name) That works fine in development. However, when I run the app on Heroku, it does not like the timezone

Heroku and Twisted

偶尔善良 提交于 2020-01-04 23:09:49
问题 I am trying to learn Twisted, a Python framework, and I want to put a basic application online that, when it receive a message sends it back. I decided to use Heroku to host it, and I followed the instructions on their docs. import os from twisted.internet import protocol, reactor class Echo(protocol.Protocol): def dataReceived(self, data): self.transport.write(data) class EchoFactory(protocol.Factory): def buildProtocol(self, addr): return Echo() port = int(os.environ.get('PORT', 5000))

ERR_SSL_PROTOCOL_ERROR with Heroku, Node, Express, SSL

北城余情 提交于 2020-01-04 22:25:30
问题 I recently enabled SSL for my Heroku-hosted website, wildcodemonkey.com, but when I visit it in Chrome I see the error "ERR_SSL_PROTOCOL_ERROR". My research indicated that the SSL connection terminates at Heroku's router, which then passes the request along via HTTP to my express/node site. Consequently, I did not set up 'https' in my server and have been expecting standard HTTP connections. My SSL configuration is such that my CSR, key and cert were passed along to Heroku. I'm using the SSL

Updating app on Heroku without loosing link to images

我与影子孤独终老i 提交于 2020-01-04 16:57:36
问题 I have an app on Heroku, where users can add images. When I update this app git push heroku master , all the images disappear, leaving only broken links. Do you know how to avoid it ? 回答1: Heroku has particular restrictions on their filesystem, as it's read only. You can only write into the public and tmp folders. Though, those folders aren't persisted accross deployments. This means you cannot rely on them to store files and images. You need to send the files to a tierce party, like Amazon

Heroku Error: ActionView::Template::Error (undefined method `captcha' for #<Message:0x007fc9df016930>)

笑着哭i 提交于 2020-01-04 16:51:29
问题 Everything is working correctly in my local environment. When I try to deploy to heroku and view my site initially it gives me the following error: "We're sorry, but something went wrong. If you are the application owner check the logs for more information." When I check my "heroku logs", I find this error message: ActionView::Template::Error (undefined method `captcha' for -Message:0x007fc9df016930-) HTML form views/pages/index.html.erb <%= form_for(@message) do |f| %> <%= f.text_field

Using both matplotlib and rpy2 with multi-buildpacks on Heroku

我只是一个虾纸丫 提交于 2020-01-04 15:25:46
问题 I'm trying to use a multi-buildpack setup on Heroku with these two buildpacks: https://github.com/virtualstaticvoid/heroku-buildpack-r.git https://github.com/dbrgn/heroku-buildpack-python-sklearn/ I am using rpy2 to call R from python. I detailed the full process I used to get the slug to compile here. It works fine for numpy, scipy, and scikit-learn with rpy2. However, I'm also trying to get matplotlib to work with this setup, and I'm getting an error. I used matplotlib==1.1.0, as suggested

Can't push a project to Heroku. Fingerprint problems

时光毁灭记忆、已成空白 提交于 2020-01-04 13:59:06
问题 When I try to push a git project to heroku, it gives me an error - Your key with fingerprint xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx is not authorized to access my_heroku_app. I've tried almost anything and everything I found on the internet - adding keys, uploading, removed every key and then retried. I've checked there are no multiple accounts. I've also checked the .git/config file to see if the project name is accurate. I noticed that after I delete the known_hosts file and try to