heroku

Is there a way to setup remote-specific .gitignores?

喜夏-厌秋 提交于 2019-12-29 04:10:40
问题 Is there a simple way to setup different .gitignore files for different remotes? I have a repository I push up to both Heroku and Github. I need database.yml for Heroku, but don't want some of the information to be pushed up to Github. So I need a different .gitignore file for each of the remotes. I tried having two separate branches, one that ignores database.yml, and one that doesn't. The problem is that when I checkout the heroku branch and go back into my github branch, the entire

How many records can I store in 5 MB of PostgreSQL on Heroku?

拥有回忆 提交于 2019-12-29 04:02:14
问题 I'm going to store records in a single table with 2 fields: id -> 4 characters password_hash -> 64 characters How many records like the one above will I be able to store in a 5mb PostgreSQL on Heroku? P.S.: given a single table with x columns and a length of y - how can I calculate the space it will take in a database? 回答1: Disk space occupied Calculating the space on disk is not trivial. You have to take into account: The overhead per table (small, basically the entries in the system catalog

heroku push rejected, failed to compile Ruby/rails app

巧了我就是萌 提交于 2019-12-29 03:15:05
问题 Having the following issue, BRAND NEW TO RoR, first time ever trying to upload an app to go live, first had hosting issues, then decided if i could fix them with heroku i would just use a custom domain with heroku...... No this isnt a test app "learning rails" thing, actual app i want to deploy for use within the business I own, any help would be great, I have searched and havent seen a solution to this problem. Make sure 'gem install sqlite3 -v 1.3.7' succeeds before bundling. Failed to

Rails 3 and Heroku: automatically “rake db:migrate” on push?

ぃ、小莉子 提交于 2019-12-29 02:48:12
问题 I have a slight annoyance with my heroku push/deploy process, which otherwise has been a joy to discover and use. If i add a new migration to my app, the only way i can get it up onto the heroku server is to do a push to the heroku remote. This uploads it and restarts the app. But it doesn't run the migration, so i have to do heroku rake db:migrate --app myapp , then heroku restart --app myapp . In the meantime, the app is broken because it hasn't run the migrations and the code is referring

Rails 4 Net::SMTPAuthenticationError: 535 #5.7.0 Authentication failed

南笙酒味 提交于 2019-12-29 01:34:13
问题 I'm building a email list for a student organization at my University. The organization has around 6000 members and to avoid costs I've received permission to use the schools emails servers and they have created an account for me. I have tested the the account using my mail client and everything seems to be working fine, but when I try to send through my Rails 4 app I get the error: Net::SMTPAuthenticationError: 535 #5.7.0 Authentication failed I have it configured like so: application.rb

Conditional pip install requirements on Heroku for Django app

旧巷老猫 提交于 2019-12-29 00:41:54
问题 Let me start by saying, that I don't think there is a way to do this... but, there are a lot of clever people out there and so I thought I would ask! :) I found a good article/post by Randall Degges on setting up a Django app on Heroku (Internet Archive link). I really like what he has to say about breaking your requirements up into different files (common.txt, dev.txt, prod.txt etc). This works great on Heroku for production, but I also maintain a Dev/QA site on Heroku, and I have a few

Conditional pip install requirements on Heroku for Django app

守給你的承諾、 提交于 2019-12-29 00:41:32
问题 Let me start by saying, that I don't think there is a way to do this... but, there are a lot of clever people out there and so I thought I would ask! :) I found a good article/post by Randall Degges on setting up a Django app on Heroku (Internet Archive link). I really like what he has to say about breaking your requirements up into different files (common.txt, dev.txt, prod.txt etc). This works great on Heroku for production, but I also maintain a Dev/QA site on Heroku, and I have a few

Imagick on heroku - is it possible?

梦想的初衷 提交于 2019-12-28 23:58:53
问题 I need to do some actions on jpeg images - Heroku's PHP GD does not allow that. I've read that it is possible with Imagick, so i rewritten the code, pushed it to heroku and... PHP Fatal error: Class 'Imagick' not found in [...] So am I doing something wrong(code works locally)? $tlo = new Imagick(); $tlo->newImage(640, 480, new ImagickPixel('white')); $tlo->setImageFormat('jpg'); Is there any way of working with jpg on heroku? 回答1: ImageMagick, a command-line utility and programming library,

如何在 Heroku 上安装和使用 Snova 代理

廉价感情. 提交于 2019-12-28 17:22:19
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Snova 虽然可以直接在 GAE 上运行,但是只有运行在 Cloud Foundry、Heroku、OpenShift 和/或其他 PaaS 平台上才能够正常访问 HTTPS 链接页面。 上一篇文章介绍了 Cloud Foundry,这篇文章将介绍 Heroku。 由于都是 PaaS 平台,Heroku 的安装和使用方法和 Cloud Foundry 的差不多,具体步骤如下: 1. 创建一个 Heroku 帐号 在 这个 Heroku 页面,输入你的邮箱地址并注册一个帐号。 2. 安装 Heroku Toolbelt 注册成功之后,你会收到一封邮件,点击里面的那个长长的链接,然后在打开的页面下载 Heroku Toolbelt 软件并安装。 3. 下载 snova-c4-heroku-server-xxx.zip 在 Snova 的下载 (Downloads)页面,下载 “snova-c4-heroku-server-xxx.zip” 文件并解压缩。 4. 部署 Snova c4 服务端到 Heroku 打开 Mac 上的终端应用程序或者 Windows 上的命令提示符,并输入以下一行命令: cd /the-parth-to/snova-c4-heroku-server-xxx 你也可以直接把 “snova

如何将文件夹与现有的Heroku应用程序链接

。_饼干妹妹 提交于 2019-12-28 17:19:43
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我在GitHub上有一个现有的Rails应用程序并部署在Heroku上。 我正在尝试建立一个新的开发机器,并从我的GitHub存储库中克隆了该项目。 但是,我很困惑如何将此文件夹链接到Heroku。 最初,我使用了 heroku create 命令,但显然我这次不想这样做,因为它会创建另一个Heroku实例。 #1楼 Heroku CLI 有一个简单的快捷方式。 对于名为'falling-wind-1624'的应用: $ heroku git:remote -a falling-wind-1624 Git remote heroku added. 请参阅 https://devcenter.heroku.com/articles/git#creating-a-heroku-remote #2楼 使用heroku的分叉 使用新的“heroku fork”命令! 它将复制所有环境,你必须更新github repo之后! heroku fork -a sourceapp targetapp 克隆它本地 git clone git@heroku.com:youamazingapp.git 在github上创建一个新的repo并添加它 git remote add origin https://github.com