Heroku pipeline app returns 404: "no such app" - heroku

I created three apps in Heroku and added them to a pipeline, but their URLs return a 404.
The apps are named like "app-name-dev", "app-name-stage", and "app-name". On the settings tab of each app, Heroku has given them auto-generated URLs, like "https://app-name-dev.herokuapp.com/", etc. But only the production URL works (the one not ending in -dev or -stage). The other 2 return 404 with the title "no such app".
Anyone know how to get Heroku pipeline apps to load in the browser? My code runs fine -- no errors -- because the production site loads fine. It's just -dev and -stage that won't load. Again, they're at default URLs assigned by Heroku -- no custom domains.
Thanks.

Duh, all I had to do was wait a few hours for some DNS entries to be updated somewhere. All 3 apps are loading now.

Related

Shopify App CLI Heroku -- page unresponsive

I created my app with Shopify CLI "shopify create" (Node.js app) and deployed it to Heroku (shopify deploy). I already add my .env variables (scopes ,SHOPIFY_API_KEY, SHOPIFY_SECRET_KEY, host, shop) to my heroku config Vars, and I changed my app url to https://MY-URL.herokuapp.com/ , and the whitelisted redirect urls to https://MY-URL.herokuapp.com/auth/callback
When trying to open the app in my dev store, the interface is shown correctly (see image below)
However, the interface is unresponsive. So e.g. I can not press the button or select the text with mouse. (actually I can not do any mouse actions at all)
I have no idea what could cause this unresponsiveness.
Further info:
If i open https://MY-URL.herokuapp.com/ in browser, Safari says "Safari cant find the server, "https:undefined/admin/oauth/authorize?...",
Chrome says "
This site can’t be reached
Check if there is a typo in undefined.
DNS_PROBE_FINISHED_NXDOMAIN"
I deployed the app a few hours ago (~4 hours) .
Thank you in advance, any help is appreciated.

Heroku not applying environment variable changes in Okta OAuth 2.0 PKCE VueJs app

I' trying to execute the OAuth 2.0 PKCE demo with a VueJs app outlined here:
https://developer.okta.com/blog/2019/08/22/okta-authjs-pkce
https://github.com/oktadeveloper/okta-auth-js-pkce-example
Once in the Heroku App I have these Environment Variables:
Everything appears to be running fine except for the fact that the variables OKTA_CLIENT_ORGURL and OKTA_OAUTH2_ISSUER were refering to an incorrect dev-XXXXXX address, the correct one is the one shown on the picture (dev-371167), before it was someone else's url (dev-739491) for some reason.
The problem is that after making the changes shown in the image to the correct dev url, it's still making the calls to the old dev-739491 url.
Heroku doesn't seem to be refreshing or making the desired changes in the app.
Am I missing an option to refresh? Is it possible to rebuild so it reads the new changes? Could the problem be in the code/build itself?
Thanks.
EDIT: As per the suggestion in the comment I turned the app off then on again and it still didn't make the changes.
This is what my screen looks like:
EDIT 2: I have since deployed the same app two more times and reading the build logs it assigns a random CLIENT_ID and URls. Each deployed app has a different pair of these. I don't know where they come from.
I wrote the Okta Heroku Add-On. I'm looking into the behavior you're seeing.
When you change the environment variables, heroku should restart your app automatically.
So, the two issues are that the environment variables didn't match you saw in Heroku didn't match with what you expected them to be and that the app doesn't seem to be picking up on the environment variables.
How did you know that dev-371167 was the correct org and that dev-739491 was incorrect?
When you say you deployed the app two more times, what exactly are you doing to deploy? Are you using the Heroku cli?

Getting a 404 using App Harbor and BitBucket

I'm new to AppHarbour and I'm trying to deploy my MVC app on a free account.
I keep getting a 404 error.
The app is coming from Bit-bucket and it was deployed successfully.
In my Hostnames section i see the following
so i have added the following to the Hosts file in my machine:
176.34.122.158 camelotfaultmanagement.apphb.com
but i still get a 404 ..
What am i doing wrong ?
And a follow-up question how can i edit one of the files to be able to edit the connection ?string to my DB?
It looks like you may not have any successful builds yet - You have to push to Bitbucket to trigger your first build. You can see a list of builds on the app dashboard: https://appharbor.com/applications/camelotfaultmanagement
To use the built-in .apphb.com domain, you don't have to mess with any DNS setup.

How to create a subsubdomain for an app on heroku: (e.g. sub.myapp.herokuapp.com)

I am running a multi tenant app that uses subdomains for tenants on Heroku. In production I have a domain where subdomains point to my heroku app. (This all works fine)
For staging, I'd like to test without creating another domain. Since my app uses the first subdomain it sees to find the current tenant, I was hoping to use a url like: tenant.myapp.herokuapp.com. However, this is not working (heroku returns a 'no such app' error.)
I've found this post from 2 years ago that says it should be possible, but I don't see this add-on/option anymore in the referenced documentation.
I have tried adding the subdomains as a wildcard in heroku by running
heroku domains:add *.myapp.herokuapp.com
but this returned
! Trying to hijack another Heroku app? Tsk, tsk.
Does anyone know if this can still be accomplished and if so, how?
note: I'm currently using my staging environment by CNAMING *.staging.myapp.com to myapp.heroku.com, but would like to clean that up.
Here's how you use subdomains with heroku
Full Details here
Custom subdomains
For each custom subdomain you want to attach to your app (for example, www.example.com), use the domains:add command from the Heroku
CLI:
$ heroku domains:add www.example.com`
Adding www.example.com to example... done
This is no longer valid: "Subdomains are currently not possible on heroku"

heroku no such app

I followed the docs at Heroku and Zerigo to set up a custom domain for MYAPP.heroku.com. When I navigate to myapp.heroku.com, everything works fine. But when I navigate to myapp.com or www.myapp.com, I get the error "Heroku | No such app"
host myapp.heroku.com
myapp.heroku.com is an alias for proxy.heroku.com.
[.....]
looks good, and
host www.myapp.com
www.myapp.com is an alias for proxy.heroku.com.
[.....]
looks good too. But I still get "Heroku | No such app".
totally baffled at this point
The DNS entries look fine - provided you've added www.myapp.com as a custom domain to your application on Heroku then it should work fine. You can check this by viewing the application from the 'My Apps' tab on heroku.com and making sure the custom domain is listed in the domains section as 'www.myapp.com'.
If thats there then I'd log a ticket with support as you're doing everything right.
UPDATE: Heroku Status was just updated with a problem surrounding custom domains, it's likely that this is your problem - https://status.heroku.com/
HEROKU UPDATE: Engineers are still investigating the source of issues regarding custom domains. We have determined that only domains added or updated in the past 48 hours should be affected.
We'll continue to provide more information as it becomes available.

Resources