Not able to add Dynos on Heroku - heroku

Settings:
I have one running 1web dyno on heroku and it works great
I have another one that's "sleeping"
I created a new app but somehow the dynos are not showing up.
I have a credit card plugged into Heroku and I am willing to pay for additional usage
When I try git push on the new app I get a timeout:
dsa002574:node-canvas mike.borozdin$ git push heroku master
ssh: connect to host heroku.com port 22: Operation timed out
fatal: The remote end hung up unexpectedly
When I try heroku scale I get an error as well:
dsa002574:node-canvas mike.borozdin$ heroku ps:scale web=1
Scaling web dynos... failed
! App must be deployed before dynos can be scaled.
Scaling from Heroku admin doesn't seem to work. Here is a screenshot:
Any guesses as to why heroku won't let me scale?

Well, your git push failed ("operation timed out"), so you haven't actually deployed an app. As a result, Heroku's having trouble scaling the non-existent app :-)

Do you have a procfile?
https://devcenter.heroku.com/articles/procfile
This will specify what app to run, and therefore what to assign dynos to it.

I didn't get a timeout when pushing, but the site failed with "No web processes running" and when I tried to ps:scale I got "App must be deployed before dynos can be scaled."
Turns out it was because I had created a local heroku branch instead of master, and when I pushed, it said "Pushed to non-master branch, skipping build." which took me a while to notice. So it didn't even try to deploy the app. Fixed by pushing to master.

Related

Heroku CLI gives "No Redis instances found" yet I have a redis cloud addon running and usable

I'm learning redis and have it working from a java app. I'm trying to use the heroku redis:cli -a myAppName command to connect with it directly but it says "No Redis instances found".
When I do heroku apps it lists myAppName so I know it's valid.
heroku redis:info -a myAppName doesn't return anything.
The heroku docs don't seem to be accurate as they all leave out the -a flag which the cli tells me is required. Outside of that I don't know what I've missed.
You are looking at documentation for Heroku Redis, a hosted Redis service that Heroku itself provides. If you wish to use Heroku Redis, you can provision it for your app using like so:
heroku addons:create heroku-redis:hobby-dev -a your-app-name
Pricing for Heroku Redis can be found here. The Hobby Dev plan used in the previous command is free.
There are also other Redis providers that can be provisioned this way, including Redis Enterprise Cloud. Or you can use existing hosted Redis server. But with these options you won't be able to interact with the service using heroku redis commands. Use whatever tooling those providers offer.

Force changing the ip of the Heroku dyno

I am wondering if there is a way to reset the dyno IP on Heroku when I want.
I noticed sometimes it changes when the application is restarted. However, not always.
How can we reset the dyno IP address on restart every time?
I already saw these questions:
Does Heroku change dyno IP during runtime?
https://www.quora.com/Do-Heroku-dynos-get-new-IP-addresses-when-redeployed-or-restarted
It turns out by restarting the app (deleting the dynos), the IP is changed, by default.
You can do this by using the Heroku API.

Octopress blog deploys on localhost, has no log errors, throws "no such app" message on Heroku

I have an Octopress blog (amyhua.me, github.com/amyhua/amyhua-me) that I've generated with several posts and have deployed to Heroku. I've configured my DNS correctly (product check on DNS configuration passes), and the blog works on my local host. I did a git push heroku master which was successful, and the heroku logs show no apparent errors. But when I try to visit my heroku app at amyhua-me.herokuapp.com, it shows a message:
"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 even started over with a new heroku app, deleting my former amyhua-me heroku app, and creating a new one I named amyhua-me (since my DNS servers point to amyhua-me.herokuapp.com), and it still throws a "No such app" message when I visit the herokuapp url.
Any ideas?
So for anyone who cares, I solved my own problem.
It was the difference between pointing to www.mydomain.herokuapp.com versus mydomain.herokuapp.com from my DNS server.
Pointing to mydomain.herokuapp.com goes to my heroku app, mydomain.
Pointing to www.mydomain.herokuapp.com goes to a "Heroku | No such app" page.
Lesson learned: don't use the "www" in your DNS configuration!
Or.... just avoid the hassle and use the Zerigo DNS heroku plug-in.

heroku subdomain wildcard on herokuapp.com

I am running a PHP application on Heroku and am wondering if I can have wildcard subdomains on top of the herokuapp.com hosted subdomain. For example I have my application running on mysubdomain.herokuapp.com through Heroku, however can I make it so *.mysubdomain.herokuapp.com points still to my server?
I am simply uploading my PHP application to the heroku instance by using 'git push heroku master'
unfortunately what you are trying to achieve is not feasible

DNS routing not working on Heroku app

I'm trying to setup a custom domain for my Heroku Cedar stack app, but it's not working.
I've tried entering 'host www.mydomain.com' command' in Terminal, but it yields no output.
I've already changed my DNS settings and added a 'CNAME' host: www, direct to: my domain.herokuapp.com but still it's not working.
What could I be doing wrong here???
Thanks,
Faisal
The fact that you're not getting any results in terminal for host then the problem lies with your DNS settings - it sometimes takes a while for updates to propogate across the internet, I usually allow for 24 hrs to be sure. If it still doesn't work then you should get in touch with your DNS host.
You also have to add domain entries to your Heroku app:
heroku domains:add yourdomain --app yourapp
The "-app yourapp" is not required if you are in the root directory of your Rails app.
You can repeatedly add more than one domain to your Heroku app.
Here is an article about adding custom domains and DNS setup, at the Heroku Dev Center:
https://devcenter.heroku.com/articles/custom-domains

Resources