heroku

Removing duplicate db migrations from git repository

醉酒当歌 提交于 2019-12-31 22:28:15
问题 I'm trying to deploy a rails app to Heroku and I'm running into some basic git problems. I'm new to this all -- rails, git, heroku -- so I'm afraid I'm getting lost on what's probably a fairly basic concept. I've pushed the app to Heroku, but when I'm migrating the db ($ heroku rake db:migrate), I keep getting the following error: rake aborted! Multiple migrations have the name CreateFavorites Checking my github repository, and sure enough, there are two migrations: 20101007030431_create

CSS not loading in Heroku

﹥>﹥吖頭↗ 提交于 2019-12-31 22:21:30
问题 I deployed my app to Heroku but only the assets\images are loading. The CSS files (especially the one that contains 90% of the CSS, custom.css) are not being loaded. I precompiled the assets locally and pushed them to Heroku with no luck. Only the images are loading, not the custom.css file. I did notice an interesting error in the Heroku log: Started GET "/users/css/parallax-slider.css" for 77.777.777.77 at 2013-06-13 02:42:09 +0000 2013-06-13T02:42:09.016864+00:00 app[web.1]:

Heroku 老牌云空间的部署方法

放肆的年华 提交于 2019-12-31 20:43:33
今天研究了 2小时解决了 免费云空间的问题 这篇文章的主角就是Heroku,他的基本服务都是免费的,并且是无限流量,无限空间,最大的优点就是支持git,支持一键部署,这里鄙视下百度云空间,所有服务都是收费的,在中国这么穷B的国度,不知道此策略能得到大家认可么? 进入主题 Heroku 很多人不知道,因为这个平台是主推Rails服务的,但是它也是完美的能兼容以下几种平台 Ruby PHP NODE.JS HTML 但是这个平台为什么是免费呢?因为它最主要的利润来源是数据库服务 这个是一个服务商的收费标准,很贵吧? 部署到 Heroku Heroku 是一个主流的 PaaS 提供商,在开发人员中广受欢迎。这个服务围绕着基于 Git 的工作流设计,假如你熟悉 Git ,那部署就十分简单。这个服务原本是为托管 Ruby 应用程序而设计的,但 Heroku 之后加入了对 Node.js 、Clojure 、Scala 、Python 和 Java 等语言的支持。Heroku 的基础服务是免费的。 下面我们使用 Heroku 部署我们的博客。 注册 https://www.heroku.com/ 创建一个应用 注册成功后,就进入了控制面板页面,如图所示: 点击 Create a new app ,填写独一无二的应用名称后,点击 creat app 即创建成功,然后点击 Finish up 。

Heroku No such app error with Node.js node-http-proxy module

橙三吉。 提交于 2019-12-31 20:40:47
问题 I'm trying to redirect traffic from my test app's /api/* url to my api hosted on Heroku. Therefore, localhost/api/hello should be proxied to testapp.heroku.com/hello and the response returned. Using node-http-proxy works perfectly on localhost to localhost, but when I point it to myapp.heroku.com, I get this error: Heroku | No such app There is no app configured at that hostname. Perhaps the app owner has renamed it, or you mistyped the URL. I have a feeling it's Heroku's routing system that

Heroku No such app error with Node.js node-http-proxy module

ぃ、小莉子 提交于 2019-12-31 20:40:23
问题 I'm trying to redirect traffic from my test app's /api/* url to my api hosted on Heroku. Therefore, localhost/api/hello should be proxied to testapp.heroku.com/hello and the response returned. Using node-http-proxy works perfectly on localhost to localhost, but when I point it to myapp.heroku.com, I get this error: Heroku | No such app There is no app configured at that hostname. Perhaps the app owner has renamed it, or you mistyped the URL. I have a feeling it's Heroku's routing system that

Strange TTFB (time to first byte) issue on Heroku

别等时光非礼了梦想. 提交于 2019-12-31 18:01:36
问题 We're in the process of improving performance of the our rails app hosted at Heroku (rails 3.2.8 and ruby 1.9.3). During this we've come across one alarming problem for which the source seems to be extremely difficult to track. Let me quickly explain how we experience the problem and how we've tried to isolate it. -- Since around June we've experienced weird lag behavior in Time to First Byte all over the site. The problems is obvious from using the site (sometimes the application doesn't

how to show all console.log from node.js in heroku?

假装没事ソ 提交于 2019-12-31 11:02:12
问题 I have deployed a node.js application to node.js but not able to see the complete console.log statements from my app. I am using: heroku logs Some of the logging is shown but looks like it is not the complete logs. Is there a node.js package to send emails from the deployed app? Email works fine from my localmachine btw. Email code: console.log('try to send email hold on'); var nodemailer = require("nodemailer"); var smtpTransport = nodemailer.createTransport({ service: "Gmail", auth: { user:

how to show all console.log from node.js in heroku?

余生长醉 提交于 2019-12-31 11:02:02
问题 I have deployed a node.js application to node.js but not able to see the complete console.log statements from my app. I am using: heroku logs Some of the logging is shown but looks like it is not the complete logs. Is there a node.js package to send emails from the deployed app? Email works fine from my localmachine btw. Email code: console.log('try to send email hold on'); var nodemailer = require("nodemailer"); var smtpTransport = nodemailer.createTransport({ service: "Gmail", auth: { user:

twitter-bootstrap-rails on Heroku: Glyphicons displayed as squares

前提是你 提交于 2019-12-31 10:53:11
问题 I have deployed a rails app on Heroku, and I am using the twitter-bootstrap-rails gem to include twitter bootstrap. Everything works perfectly locally (and in the development environment), but on Heroku (and in production) everything works fine except for the glyphicons, which all display as little squares. At first I thought this was a problem with the icon sprites not being precompiled, so in my gemfile, I moved the line 'gem twitter-bootstrap-rails' out of the assets group, and I was sure

How can I schedule a 'weekly' job on Heroku?

雨燕双飞 提交于 2019-12-31 09:13:50
问题 I have a Rails app deployed on Heroku with the Heroku scheduler add-on successfully working for daily jobs. Now I want a weekly job , but the scheduler add-on does not allow me a weekly option. Any suggestions on how I could accomplish this: I've tried using rufus-scheduler in the past but it caused me some problems, so that's not an option. See here for detail. I'm thinking of something along the lines of checking for current day within a daily job. Has anyone tried it and have feedback or