heroku

Heroku: Using external mount in local filesystem

烂漫一生 提交于 2020-01-22 21:21:52
问题 I know it's possible to mount an Amazon S3 bucket using Fuse (s3fs [or s3fsr ruby gem?]). My case is specific to Heroku. Heroku's filesystem is readonly for scalability and such, but is there a way to mount an amazon s3 in Heroku's filesystem? In my case, I use Redmine on Heroku and would like to use Redmine's built-in git repository management to link code reviews to my issues. Redmine needs to clone the repository to a local directory, which is possible but not persistent on Heroku. I would

Heroku-like deployment and environment configuration via EC2

蹲街弑〆低调 提交于 2020-01-22 12:16:08
问题 I really like the approach of a 12factor app, which you are kinda forced into, when you deploy an application to Heroku. For this question I'm particularly interested in setting environment variables for configuration, like one would do on Heroku. As far as I can tell, there's no way to change the ENV for one or multiple instances within the EC2 console (though it's seems to be possible to set 5 ENV vars when using elastic beanstalk). Therefore my next bet on an Ubuntu based system would be

Heroku ENOENT: no such file or directory, stat '/app/build/index.html'

被刻印的时光 ゝ 提交于 2020-01-22 12:13:09
问题 I'm having trouble running a simple test site in Heroku. For some reason it's trying to serve the content from /app/build/ when I want it to serve from /build/. Error: ENOENT: no such file or directory, stat '/app/build/index.html' I read here not to use __dirname in the express app as Heroku set it to /app and that I should use process.cwd(); process.env.PWD = process.cwd(); But it didn't work. Below is my server.js express app and folder structure const path = require('path'); const express

Git push failing after Heroku app name change

て烟熏妆下的殇ゞ 提交于 2020-01-22 07:43:28
问题 I changed my app name from "my-app-staging" to "my-app-staging-new" in the Heroku dashboard. Now I can no longer push changes to it- git throws the following error: ! No such app as my-app-staging. fatal: Could not read from remote repository. How do I resolve that? 回答1: You need to change your git remote. If you do git remote -v you should see heroku listed. It will look something like: heroku git@github.com:my-app-staging.git (fetch) heroku git@github.com:my-app-staging.git (push) Delete

Application Error when attempting to deploy Node.js/Express/Socket.io application on Heroku

我的梦境 提交于 2020-01-22 05:51:06
问题 I am fairly new to all of these technologies (including somewhat JavaScript) so you might have to bear with me here. I followed the ChatApp tutorial over at Socket.IO docs fairly closely and modified the application to my likings somewhat; however, I don't think I changed much on the side of server interaction and stuff. My problem is no matter what I do, I can't seem to be able to get my application to successfully run on Heroku. I get this error message when trying to load the app:

I can not register my Django project on Heroku

丶灬走出姿态 提交于 2020-01-22 01:51:06
问题 I updated the python version from 3.6.4 to 3.6.5 today. This is because, in the process of distributing to Heroku, it recommends version 3.6.5. Therefore, the following power shell contents were confirmed. Writing objects: 100% (35/35), 11.68 KiB | 0 bytes/s, done. Total 35 (delta 3), reused 0 (delta 0) remote: Compressing source files... done. remote: -----> Python app detected remote: ! The latest version of Python 3 is python-3.6.5 (you are using ÿþpython-3.6.5, which is unsupported).

Error when pushing to Heroku - …appear in group - Ruby on Rails

旧街凉风 提交于 2020-01-21 23:53:28
问题 I am trying to deploy my first rails app to Heroku and seem to be having a problem. After git push heroku master , and heroku rake db:migrate I get an error saying: SELECT posts.*, count(*) as vote_total FROM "posts" INNER JOIN "votes" ON votes.post_id = posts.id GROUP BY votes.post_id ORDER BY created_at DESC LIMIT 5 OFFSET 0): I have included the full error below and also included the PostControll#index as it seems that is where I am doing the grouping. Lastly I included my routes.rb file.

“No source repositories were detected at(my app). Please check the URL and try again.”

陌路散爱 提交于 2020-01-21 18:59:30
问题 I have a URL for my Heroku app here: https://damp-sands-09329.herokuapp.com/. When I go to https://github.com/new/import, I am told to enter "Your old repository’s clone URL" and I entered the site URL and it said to me No source repositories were detected at https://damp-sands-09329.herokuapp.com/. Please check the URL and try again. Why is this happening? 回答1: Github is correct, what you provided is not a valid Git repository URL. The Heroku site or web URL (of the form https://xxxxxx

“No source repositories were detected at(my app). Please check the URL and try again.”

两盒软妹~` 提交于 2020-01-21 18:59:10
问题 I have a URL for my Heroku app here: https://damp-sands-09329.herokuapp.com/. When I go to https://github.com/new/import, I am told to enter "Your old repository’s clone URL" and I entered the site URL and it said to me No source repositories were detected at https://damp-sands-09329.herokuapp.com/. Please check the URL and try again. Why is this happening? 回答1: Github is correct, what you provided is not a valid Git repository URL. The Heroku site or web URL (of the form https://xxxxxx

500 error page not showing on Heroku

不打扰是莪最后的温柔 提交于 2020-01-21 13:19:36
问题 I'm trying to get a custom 500 error page to show on Heroku, running rails 3.2.11 I've followed the steps at: https://devcenter.heroku.com/articles/error-pages The process worked fine for the maintenance page, but doesn't seem to work for the error page. I'm positive the S3 URL is correct in Heroku, and when I visit the S3 URL directly I can view the error page just fine (it is set to public). config.consider_all_requests_local is set to false in production.rb Any ideas as to why Heroku is