How to shutdown an app deployed on Heroku? - heroku

I have an app on Heroku which is being used by few users. However, I notice there are some data issues which I'd like to fix and stop the app in the mean time so users don't enter anything new.
Is there a way to stop the app on Heroku rather than destroying it? I see that restart server command is there... Although I don't see anything like 'stop'.

To completely 'stop' your app you can scale the web dynos down to zero which effectively takes all your app http-processes offline.
$ heroku ps:scale web=0
Scaling web processes... done, now running 0

http://devcenter.heroku.com/articles/maintenance-mode
If you’re deploying a large migration or need to disable access to your application for some length of time, you can use Heroku’s built in maintenance mode. It will serve a static page to all visitors, while still allowing you to run rake tasks or console commands.
$ heroku maintenance:on
Maintenance mode enabled.
and later
$ heroku maintenance:off
Maintenance mode disabled.

Simple steps from the Heroku Web
go to Dashboard
click in "Your App Name"
click in Resources tab
click in the Pencil icon (look the attached image)
Flip the switch to left
click in Confirm

Go to your dashboard on heroku. Select the app. There is a dynos section. Just pull the sliders for the dynos down, (a decrease in dynos is to the left), to the number of dynos you want to be running. The slider goes to 0. Then save your changes. Boom.
According to the comment below: there is a pencil icon that needs to be clicked to accomplish this. I have not checked - but am putting it here in case it helps.

You might have to be more specific and specify the app name as well (this is the name of the app as you have it in heroku). For example:
heroku ps:scale web=0 --app myAppName
Otherwise you might get the following message:
% heroku ps:scale web=0
Scaling dynos... failed
! No app specified.
! Run this command from an app folder or specify which app to use with --app APP.

You can disable the app using enable maintenance mode from the admin panel.
Go to settings tabs.
In bottom just before deleting the app. enable maintenance mode. see in the screenshot below.

To add to the answers above: if you want to stop Dyno using admin panel, the current solution on free tier:
Open App
In Overview tab, in "Dyno formation" section click on "Configure Dynos"
In the needed row of "Free Dynos" section, click on the pencil icon on the right
Click on the blue on/off control, and then click on "Confirm"
Hope this helps.

CMD:
install The Heroku CLI https://devcenter.heroku.com/articles/heroku-cli#download-and-install
press win+r, type "cmd" press enter
heroku login # login
heroku ps:scale worker=0 -a your_app_name
GIU:
https://dashboard.heroku.com/apps
Personal==> ==> Resources > click on Pencil Icon and drag to left side > confirm
then Dynos will go down.

If you are using eclipse plugin, double click on the app-name in My Heroku Applications. In Processes tab, press Scale Button. A small window will pop-up. Increase/decrease the count and just say OK.

To DELETE your Heroku app
This is for those looking to DELETE an app on their Heroku account.
Sometimes you end up here when trying to find out how to remove/delete an app.
WARNING: This is irreversible!
Go to your Heroku dashboard here
Select the app you want to delete.
Scroll down to the bottom of the settings page for that app.
Press the red Delete app... button.

1> Yes... There is pencil icon when we go to Personal==> <app name> ==>Resources
then click on Pencil Icon and drag to left side and Dynos will go down.
2> You can validate using Heroku cli
heroku logs --app {your-appname}
it worked for me.

Related

No option to open the app when deploying using a Heroku button

Issue
When I use the Hasura GraphQL Engine Heroku Button, I don't see a green tick for the Deploy to Heroku stage of the deployment and the buttons to manage/view the app are also missing. Reference screenshot:
This is how the deployment screen used to look before I ran into this error:
But this app actually gets deployed as you can see from this screenshot of the dashboard:
The deployment clearly went through without any errors and I can access the `Manage app' button in the app's settings page:
All the reference screenshots were taken after about 5-10 mins of the deployment process, which is more than enough time for it be completed. The issue was also reproduced consistently multiple times.
How to reproduce
1) Go to https://elements.heroku.com/buttons/hasura/graphql-engine-heroku
2) Click on the Deploy to Heroku on the top right

"do you want the application .ios.app to accept incoming network connections" popup diaplay every time

"do you want the application .ios.app to accept incoming network connections" popup diaplay every time when run Applition in simulator in MACwhen run app in xamarin forms
This issue occur when add Xamarin.TestCloud.Agent Package in ios project.
I select "Allow" and I see the app appear in "Security > Firewall > Firewall Options list of exceptions", but it continues to ask me every time.
when i am create new Blank Xamarin.Forms app it's working fine.
Please help me
You can open the Terminal.app and type in the text below. Make sure that your app is not running while you do this.
sudo codesign --force --deep --sign - /Applications/xxx.app/
This will re-sign the app and the prompt will disappear. Note: You will get the prompt one more time after doing this, however it won't come up the next time.
You will see something like this in the terminal:
/xxx.app/: replacing existing signature
For more information you can access here.

spree on heroku admin button icons displaying incorrectly

I deployed a spree app on heroku.
Locally everything works great, in the heroku app the icon in the buttons from the admin panel display incorrectly, making it a bit difficult to use. Example:
http://imgur.com/a/StRvI
any ideas?
thanks.
after rake asset:precomplie rename fontawesome icons images name
in public/assets/spree/backend/all-xxxx.css file with newly renamed images name
then git add .
commit
push to heroku
icon will be display on heroku.

OSX Notification Center Icon

I'm using OSX's Notification Center APIs for the first time and can't seem to figure out how to make my app's icon to show up in the Notification badge.
The default "your app doesn't have an icon" icon keeps showing up:
Here's what I've done so far
I have created an icns file that includes 512, 256, 128, 32 & 16px versions
dragged the icon into the "App Icon" section of the target's summary
I made to sure to check the box to copy the icon into the project
the plist's "Icon file" section references the correct icon name (minus the .icns) part
Any ideas? The icon doesn't show up when I run the app thru Xcode or when I export an archive either.
I also have extracted the Sparrow.icns file from Sparrow.app and tried using that one instead of the one I made. That didn't work either.
I was able to fix this issue by incrementing the Build number in the General section for the build Target.
You can force the Notification Center to refresh all of the icons by deleting the Notification Center database file (~/Library/Application Support/NotificationCenter/SOME_UUID.db) and then killing the Notification Center process (e.g., from Activity Monitor).
Unfortunately this has the side effect of deleting your notification history, but this wasn't too much of an issue for me.
There's actually an ongoing debate on Apple's developer forums (link, link for people with access) about this. As far as I know, there's currently no real solution, but you can try the following:
Change your app's bundle ID and try it again. If you change it, clean your app, and change back, some people have reported success with seeing their icon show up.
Log in as another user. The caching Notification Center uses may be per-user, so you might be able to get the properly-iconned notifications as a different person.
The folder location has been moved for OSX 10.10+.
Following command takes to you to its new location:
$ cd `getconf DARWIN_USER_DIR`/com.apple.notificationcenter/db
and then
$ open .
Easiest way that I managed to get the icon to show up is change the Bundle Identifier in your project. This works on OSX 10.10.5 and XCode 7.2
(Once notification center picks up the change, you can change it back to your original bundle identifier if you already have a provisioning profile associated with it)
I have solved the issue by archiving my app and adding a copy to my applications folder. When the app is in Application folder, the icon is always visible even you run the app from XCode...
I tried all of the above suggestions but the only thing that worked for me on 10.14 was to delete DerivedData:
rm -rf ~/Library/Developer/Xcode/DerivedData
If anyone still having this issue, and none of the methods above worked, here is how I solved it:
open Notifications from the System Preference (easiest is to open Alfred or spotlight and type Notifications)
find your application and remove it (press backspace/delete button)
NOTE: this may remove all notifications
I am using Xcode 11.5 and I had the same problem. In my case tough, it was sufficient to clean build output, close and reopen the project. Then do a fresh build and let it run again. The icon was there afterwards.
Side note: I've placed the app icon for every size in the assets.xcassets file, except 1024 x 1024 pixels. Don't know if this is relevant or not. Hope that helps.

APNS Assistant not launching on Apple Dev Provisioning Site

I just want to see if I am going crazy or not. I have the following App Ids in the provisioning portal.
com.foo.*
com.foo
com.foo.FooApp
The first was for before we needed push.
The second was a mistake, but I can't delete it.
The third is for my current push notifications
The problem that I have is that the APNS assistant will not launch when I click the configure button for my com.foo.FooApp App Id. I created the push certificates and then revoked them, but am unable to recreate...?
Thanks!
mark
I have the same problem. The APNS assistant doesn't launch when I click the configure button. Tried everything I can think of, like creating additional AppID's and then trying to configure the SSL certs for those, but same result - clicking the configure button does nothing.
Also reported it to Apple (2010/10/12) -no response yet.
Just tried again (2010/10/15) - Apple fixed the issue. All working

Resources