heroku

Deploy my app on heroku

白昼怎懂夜的黑 提交于 2019-12-25 03:34:40
问题 I am learning how to deploy my app on Heroku and need some guidance. Background: My app currently runs locally, and accesses MySQL database on my machine to pull data for making phone calls to people via Twilio. The scripts in my app are in PHP. So I what I want to do is to push both the scripts and mysql database onto heroku's cloud and schedule a specific script to run. I have tried reading tutorials online (the most helpful one has been this), but I am still unable to figure the following:

Additional user attributes results in UnknownAttributeError and NoMethodError

北城余情 提交于 2019-12-25 03:25:10
问题 Apologies in advance for ultra-long post, just trying to include all the info... I have an app using Devise in which I use a rakefile to seed the database with users among other things. This worked recently, but I can't for the life of me tell what happened over the last few set of changes and it probably just needs a fresh pair of eyes. Here's the bang-head-against-wall twist: running the rakefile on localhost works correctly running the rakefile after pushing to Heroku gives the errors I'll

git clone always clone the same repo no matter what url I provide

允我心安 提交于 2019-12-25 03:19:27
问题 No matter what git clone url I use, git always clones one of my old projects from bitbucket. For example when I do something like this: git clone https://github.com/heroku/php-getting-started.git instead of cloning from heroku, I get one of my projects (always the same project) from my bitbucket repository. I have tried to remove all the keys associated with the ssh, and create the new ones, but whatever I do the result is the same. Please help. Thank you Please let me know if I need to

How do I restore three items from a backup made using Heroku PG Backups?

风流意气都作罢 提交于 2019-12-25 03:16:14
问题 I've got a Rails app running on Heroku and installed the free pgbackups addon. There's three records I'd like to restore from the backup. According to Heroku docs when you do a restore, it restores the whole database. How do I restore just these three records? 回答1: Create a new database, load the pgbackup into it, and then cherry pick what you want out of it. 回答2: As far as I know Heroku is using what's referred to as the "-Fc" format for everything, which is described in the pg_dump section

show one application on 2 site with different front ends but same back end, in ROR hosted on heroku

天大地大妈咪最大 提交于 2019-12-25 02:57:56
问题 I have an application in rails and hosted on Heroku. Now , what I want is that the application can be accessed from 2 different domains, when the application is accessed from suppose a.com it should have a specific frontend, and when accessed from b.com it should display some other frontend. The backend should be same for both. To achieve this I suppose there is only one way I guess, which is to have two different application with same backed code, and same database(I am using PostgreSQL). I

Update PostGIS extensions on Heroku

拜拜、爱过 提交于 2019-12-25 02:54:15
问题 Everything worked fine, but some time ago rails app response a error. PG::UndefinedFile: ERROR: could not access file “$libdir/postgis-2.1": No such file or directory Also now I can't create database backup, it's crashed on table which working whit postgis. Backup will creating if exclude this table. pg:psql -c "\dx postgis" postgis 2.1.7 I tried to find a solution to this problem and what I found was: ALTER EXTENSION postgis UPDATE; ALTER EXTENSION postgis_sfcgal UPDATE; ALTER EXTENSION

rails 4.2 can't see db queries in heroku logs even though log_level set to :debug

若如初见. 提交于 2019-12-25 02:53:34
问题 Here is a project I'm working on: https://github.com/homanchou/the_drawing_challenge I'm having trouble seeing any db queries in the server logs on heroku or even locally in the terminal when running Puma with Foreman. All I see are asset or web requests 21:54:34 web.1 | started with pid 54784 21:54:35 web.1 | [54784] Puma starting in cluster mode... 21:54:35 web.1 | [54784] * Version 2.10.2 (ruby 2.1.5-p273), codename: Robots on Comets 21:54:35 web.1 | [54784] * Min threads: 1, max threads:

Error: Cannot find module '/app/index.js' - heroku

戏子无情 提交于 2019-12-25 02:48:09
问题 I'm a beginner using Heroku and I have a problem: When I write git push heroku master in my terminal prompt, I'm getting an error: Error: Cannot find module '/app/index.js' I don't really know what I did wrong. In the Procfile: web: node index.js In the package.json: { "name": "the-chat", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "node index.js", "start": "node index.js" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "express": "^4

Python heroku error H20 App boot timeout, R10 boot timeout

人盡茶涼 提交于 2019-12-25 02:44:13
问题 I do as the examples: http://flask.pocoo.org/docs/quickstart/, and I can run it well on my own machine after "foreman start", however when I deploy it on heroku, I got R10 timeout error. I wrote the Procfileas : web: python flaskr.py and in order to run the "git push heroku master" command, I delete the "disreibute==0.6.24" sentence because if not, I would get an error as follows: Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'install' is not defined

Heroku: Could not find libv8-3.15.11.1 in any of the sources

偶尔善良 提交于 2019-12-25 02:37:09
问题 I know there are a lot of these questions on Github (I've looked through all of them), but none of the answers have worked for me. I am getting the error "Could not find libv8-3.15.11.1 in any of the sources" when I try "git push heroku master." I specify the version of libv8 in my Gemfile (with gem "libv8", "~> 3.11.8.13"), and I think this is reflected in my Gemfile.lock ("libv8 (3.11.8.13)"). I don't understand why it's looking for version 3.15.11.1 when I've specified 3.11.8.13. I made