Using Heroku for production - heroku

This help site (http://www.howtoinstallghost.com/how-to-install-ghost-on-heroku/) says that "Heroku should not be used for production!". What could the possible reasons for them saying this be?
I just want to set up a simple blog.
Thank you in advance.

From the same page;
Why do you only recommend Heroku for testing?
If you upload any images to your Ghost blog hosted on Heroku they will eventually be lost because of the ephemeral filesystem. There is no warning about this so we do not currently recommend anybody to use Heroku.
In other words, since any files you write to the file system at Heroku may go away at any time (and is not shared between instances of the blog if you try to scale out), you may lose all uploaded pictures at any time (once a month/once a minute, who knows) and need to upload them again.

Related

Question about deploying a Shopify app to Heroku

I have question about Shopify app development and the deployment process.
I've used the getting started guide here, and I have an app that works fine when I use npm run dev and view the app in the store admin.
However, of course, once I stop the server from running, the app is no longer accessible.
I believe I need to deploy the app to Heroku (or something similar) in order to have it work in a non-development environment.
It doesn't seem like there is much guidance online from Shopify about the best way to go about this.
Does anyone know what steps I need to take in order to deploy my app to Heroku, so that I can use the app in by test store on another device?
It seems like every guide online stops JUST BEFORE explaining this process and I can't figure out why! I have tried everything online but nothing has worked:
Adding the code to Github and connecting it to Heroku
Using Docker
Any help is appreciated. Thank you!
You have zero obligations to use Heroku. If you have an IP address dedicated to your house, you could host the App using your house. If you co-locate your own server at an Internet business, and they give you IP addresses you can use that. If you wanted to use Amazon directly, you could use EC2. If you wanted to use Linode, or Azure, or any other cloud service, feel free! It is up to you!
Using Heroku (built on AWS) is traditional only in the sense that it is the original easy peasy hosting in the cloud service. Play with Heroku by reading Heroku-specific documentation or hosting information. This has nothing to do with Shopify. Shopify only mentions Heroku because traditionally, developers used it. No other reason.
If you want to learn how to use Heroku, 100% there are blog posts within easy reach for you to study and learn from.

I have a serious discord bot on Heroku that should not stop but after 1 day it did a full reset

hi guys so I have a bot in discord which constantly adds data to an excel file but after a full day that we deployed on Heroku it did a full reset the excel file and the bot, but in Heroku there's nothing wrong, I payed the 7$/hobby plan which is described "never sleeps" can someone help me solve the issue ? it's an emergency for me I would highly appreciate if someone solves
Heroku file system is ephemeral, meaning Dyno applications can write on the file system but changes are discared when the Dyno restarts.
Dynos restart every 24hrs, even the ones you pay for, so local changes never last.
You must use an external storage: Amazone S3, FTP hosting, Dropbox, etc...
If you are looking for free file storage options I have create a Github repo with some info and references.
There are several alternatives that offer a free tier (limited space) and can be accessed securely (token or credentials) via an API:
Github (simple, free, unlimited space, suitable for saving few files)
S3 (most popular, very cheap, suitable for small and very large volumes)
DriveHQ (free with limited space, FTP hosting)
Dropbox (free with limited space, great Web UI to manage your files)

Heroku alternative

I´m new on development and found Heroku easy for deploying my app.
I was happy until I got to problems:
Heroku does not provide an IP adress which I need for a white IP list to access an API. I fixed this with a Heroku add-on proxy called Fixie. That is free if under 500 request per month.
The Heroku free plan sleeps after 30 min of inactivity. My app needs to makes API requests at midnight and this is getting difficult because the app is sleeping.
I was thinking to pay the nearest cheap plan on Heroku which make that the app does not sleep. But then I though why not use another platfrom than Heroku.
Does anyone have some sugestions? Any other platform that give an IP so I don´t worry about crossing the 500 request per month?
I was thinking of AWS Elastic Beanstalk. But as I said I´m new at this.
You can use DigitalOcean: the cheapest plan is 5$ a month and you get a Droplet with its own IP address. The Droplet is always running (no inactivity timeout like Heroku).
The main difference is Heroku provides an abstraction layer on top of the underlying infrastructure (you only deal with the application deployment and management) while DigitalOcean delivers a virtual box (ie Ubuntu), however the documentation is great and you can easily find what you need (ie install Docker, etc..)
Couldn’t agree more.
I have been running many applications on Heroku for years now and have faced the 1st problem that you’ve mentioned multiple times.
I tried using Engine Yard instead of Heroku as far as I can remember I never faced the IP issue that you are referring to. AWS is good, but again it’s not without its limitations because its really hard to use. It’s these shortcomings that drive users crazy, isn't it? All I can say is that when I shifted to Engine Yard the set problems I faced considerably dropped. It appears to be a much more usable platform. Check it out.
Here’s a link to Engine Yard, which I hope will help you.

Is it possible to set a spending limit on Heroku?

I have a Rails app deployed to Heroku on the Cedar Stack. I'd like to start running a nightly scheduled task, but in order to add the scheduler add-on, I need to give Heroku my credit card details.
I'm not sure how much this will end up costing, though, so I'd like to be able to set a spending limit on my Heroku account.
In other words, I'd like to be able to say "Please don't let me use dyno hours that will cost me more than $XXX per month".
Any ideas? Thanks!
I asked this same question on the Heroku forums. The answer is no, there is currently no way of setting a spending limit.
It is a feature they are considering implementing, though.
No, it's currently not possible to manage your cost natively with Heroku because they don't offer such feature at the moment.
However, there are a few third party solutions available. For example, the Heroku add-on cloudvertical claims to be able to track and analyse cloud infrastructure usage and costs.
There is also HireFire, a dyno manager.
If you search for Heroku scaling, or Heroku autoscaling, you will find a few solutions.
Disclaimer: I haven't tried them.

heroku file upload in php

I'm wondering for long period of time for making an app in facebook with heroku server. Actually my app dynamically generates image via php. But heroku wont allow allow me for image generation. Can some one explain me how to solve it or recommend any other free server like heroku?
I don't really know what your question is, since you didn't post any specifics or code samples, but I'm betting your issue is with Heroku having a read-only filesystem. If you want your app to be able to create/store/manipulate files, you should be using external storage. I use Amazon S3 with Heroku to store images for my Rails apps and it works great. Google "Heroku s3" and you should find a wealth of information.
More info on the filesystem restraints: https://devcenter.heroku.com/articles/read-only-filesystem

Resources