I am deploying an app to Heroku and give it permission to access upload folder. My problem is that it's resetting to a default permission when I quit Heroku bash and restart it. I want this permission to persist. Does anyone know how to do that?
You can't do that. When you run heroku bash, it creates one-off dyno with your application code, so it looks like you are connected to your application server, but in reality you are just connected to another temporary server. After disconnecting this server is killed.
If you want uploads on Heroku, you need to store them in some cloud storage like Amazon S3.
Related
I'm new to Heroku. I've mistakenly created second app on my account and now I can't execute heroku open command to see my app running on the server. I'm posting the screen of the error message. I need only the one named guarded-wildwood-67162. How can I delete other app - shielded-sea-53572?
To permanently destroy a Heroku app you can use heroku apps:destroy --app <app-name> or use the Heroku web interface. Note that this doesn't just disconnect the app; it completely destroys it.
I am trying to access the Heroku website now and it's not responding.
API Unavailable
I can't even update my application through CLI.
How soon this will be fix?
Heroku was affected by the DDOS attacks made to DynDNS. Check Heroku Status for more info
O.k. so maybe I'm missing something basic here, but when I run heroku login I get the usual email and password prompt.
At this point I would assume I'm logged into the Heroku dino just a I would using my local box.
Instead I get a message telling me I'm logged in, but I'm still on my local box.
Is there really no shell access for Heroku apps?
You can open a dynamic session with this command:
heroku run bash
However, please be aware that Heroku runs applications on dynos: https://devcenter.heroku.com/articles/dynos
No, you can't directly access the Heroku dynos. You can run commands through the CLI, such as getting logs, adding add-ins, etc.
Logging in through the CLI, as you have done, is simply setting your credentials for Heroku locally. They are subsequently used for running commands so you don't always have to reauthenticate.
heroku login doesn't open a new terminal session like ssh would. Instead, it just remembers your profile so that when you call heroku with a different command (like heroku create to create a new app) you won't be prompted for email and password again.
You can also push your code to the app with git push heroku master once you are logged in.
You can do some hackery (like using this plugin) to ssh into your dyno, but that's not the way heroku is supposed to work. The idea behind heroku is that you just push your code there and it manages everything else for you.
I need to mount my Storage account file service in a Web App. I tried to do that via scm cmd. But Access is denied. How Can I do this?
Not yet, but apparently this is being worked on and is in the top 6 list of requested features on the Azure Feedback channel.
See here for the current status
I lost all the data on my localmachine (Macbook Pro) and, to make matters worse, the repo for a Rails app hosted on Heroku has also been deleted on github. Since I lost all the data on my localmachine, whatever security keys I had installed have also been deleted so if I try to connect to Heroku it won't even recognize me. What can I do in this situation to download the app and export the database?
Are you still able to log into heroku.com? If so, you should be able to set up the heroku CLI again with a new public key. Then you should be able to use heroku git:clone APP to get the code from heroku.
With your database, there should be options for managing it on heroku.com or via the heroku CLI (e.g. heroku pg:pull if you're using postgres).