Questions tagged [heroku]

Heroku is a cloud platform for Ruby, Node.js, Python, Scala, Clojure, Go, PHP, and JVM-based applications. It features Git-based, GitHub, and API deployment strategies, a large number of services offered as add-ons, and a full API.

Heroku (pronounced her-OH-koo) is a cloud platform for , , , and -based (, , , etc.) applications. It features, among other things:

Git-based deployment strategy

Applications on Heroku are managed with Git. Simply pushing your codebase to Heroku is all it takes to deploy your application.

Add-Ons

Heroku offers a growing number of add-ons via its add-on provider program. Additional services, such as error tracking and reporting, incoming and outgoing email services, hosted no-SQL databases, full-text search and more, are available via a few clicks or commands on the prompt.

Dev Center

Heroku Dev Center contains official guides for platform, languages and add-ons etc.,

Buildpacks

Any language not supported by default can be enabled by creating a custom 'buildpack'.

Configuration

For greater safety and portability, Heroku allows you to manage environment-specific configuration separately from your source code.

Fully Managed, Multi-Tenant Architecture

Heroku's architecture is designed to keep your app running smoothly with minimal interaction on your part. The Heroku site has a detailed explanation of its architecture.

Full API

All of Heroku's functionality can be accessed from the command line (via the Heroku gem), including managing SSH keys, increasing or decreasing the number of dynos, managing SSL certificates, adding or removing add-ons, and more.

Rails 4

Prior to Rails 4, Heroku uses the plugin system to inject some code into your application when you deploy. Plugins are no longer supported in Rails 4, so Heroku has provided some gems. Please see the Rails 4 Documentation

Reference Links:

43716 questions
10
votes
1 answer

EADDRINUSE Heroku Error When Starting Node App

I'm getting an EADDRINUSE error when Heroku tries to start my app. I've looked at other questions on the subject, where they got the same error and I understand in theory it's related to another process existing on the same port. However, I cannot…
user3517317
  • 319
  • 3
  • 12
10
votes
3 answers

How to run one-off Docker containers locally (triggered from within a container)

When hosting applications on Heroku I often trigger one-off dynos via the Heroku API from within the code to do heavy lifting in the background. I recently set up some stacks on AWS and followed a similar pattern by using AWS ECS run task. I am not…
André
  • 2,042
  • 1
  • 23
  • 26
10
votes
4 answers

Running Rails unit tests on Heroku

I've deployed an app to Heroku, and it all works fine. The problem is I can't get my unit tests running remotely. I've tried: heroku rake test:units and heroku rake db:test:prepare but for both I get a massive stack trace, ending with: rake…
Skilldrick
  • 69,215
  • 34
  • 177
  • 229
10
votes
2 answers

Deploying Angular app to Heroku, build was successful but in browser it shows 404 not found

Hi I am a beginner trying to deploy an app on Heroku. I've successfully deployed an app before but for some reason this time nothing works. I've followed the steps from this blog…
catherine
  • 143
  • 2
  • 9
10
votes
2 answers

Heroku ---> Installing pip remote: AttributeError: module 'pip._vendor.requests' has no attribute 'Session'

A Python 3.6 Django ==11 app was being deployed and code being pushed regularly till yesterday. Now I have the error: remote: AttributeError: module 'pip._vendor.requests' has no attribute 'Session' Entire trace: Counting objects: 3, done. Delta…
Rohit Dhankar
  • 1,574
  • 18
  • 25
10
votes
5 answers

Deploying node app to heroku with client and server in two separate folders

I've done a bunch of research and I can't quite seem to wrap my head around this. I've built an app. The client was built with Vue-cli and runs on port 8080 from a client folder, and the server from a separate server folder on port 8081. In essence,…
Modermo
  • 1,852
  • 2
  • 25
  • 46
10
votes
2 answers

Heroku Permanent Database Credentials

I've decided to save time on the ops side of things and move to Heroku. I'm planning to have a production dyno on Heroku with a postgres database AND another dyno that reads from the same database. However when I opened the settings of postgres, it…
thundrshock
  • 103
  • 1
  • 7
10
votes
1 answer

Git/Heroku - How to hide my SECRET_KEY?

Im using Python and Django to create a Heroku web app and Heroku gives me this error after the command 'git push heroku master': ModuleNotFoundError: No module named 'dlist.secret_settings' when attempting to do this: #settings.py from…
xv8
  • 183
  • 2
  • 11
10
votes
2 answers

User: anonymous is not authorized to perform: es:ESHttpPost on resource:

I'm having this issue with my app. my app is deployed to Heroku server, and i'm using Elasticsearch which is deployed on AWS. when i try to access locally to Elasticsearch - on aws domain - everyting works. but,when i try to access to my Heroku…
10
votes
1 answer

Set port number for the embedded h2 database

I use h2 in-memory database only for the testing purposes. The default port seems to be 8082, which causes my tests to fail on heroku. I want to change this port number. How can I do that ? What I've done so far: There seems to be a file on my…
Arian
  • 7,397
  • 21
  • 89
  • 177
10
votes
1 answer

Identify Heroku user account in running Rails console

Is it possible to identify the heroku username of the current user connected to an app through a running console? So say I connect to a rails console on my heroku app using heroku run rails c --app my-app I'd like to be able to run a command and…
JoshReedSchramm
  • 2,751
  • 1
  • 27
  • 45
10
votes
1 answer

Flask database migrations on heroku

With my app I am using flask-script and flask-migrate for database migrations, everything works locally. When, I run heroku run python manage.py db init It creates this output: Running python manage.py db init on ⬢ fpds-scheduler... up, run.1290…
spitfiredd
  • 2,897
  • 5
  • 32
  • 75
10
votes
6 answers

Rails 3: Autoscaling workers in Heroku

What's the best way to autoscale workers in Heroku using Rails 3?
donald
  • 23,587
  • 42
  • 142
  • 223
10
votes
3 answers

Heroku: How to deploy a node app with client and server running on different ports?

I have a nodejs API as server and React/Redux app as client located in one git project: https://github.com/lafisrap/fcc_nightlife.git I want to deploy it on Heroku using the heroku cli. The scripts section in package.json is: "scripts": { …
Michael
  • 6,823
  • 11
  • 54
  • 84
10
votes
2 answers

"ActionView::Template::Error (Unknown primary key for table" after trying to push local database to Heroku

For a Ruby-on-Rails app that I'm hosting through Heroku, I recently downloaded a backup, restored it locally and then added data to the database from outside sources. That all worked fine. After the updated database was pushed to Heroku using…
themantalope
  • 1,040
  • 11
  • 42
1 2 3
99
100