user979326
user979326

Reputation: 23

Rails hosting for small photo app

I'm making a small photo-gallery app. The photos will be hosted locally. Right now I use dreamhost but their rails implementation looks horrible. So I'm looking for other options. I know Heroku gives you one 'web dyno' for free, but they don't say anything about how much space you get. As I said, I want my photos stored locally with the app, I don't want to deal with s3 or other cloud storage.

Upvotes: 2

Views: 948

Answers (5)

Pandurang Waghulde
Pandurang Waghulde

Reputation: 1035

Use Openshift to deploy your app checkout this deploying rails app in openshift

openshift provides one permanent data directory to store data and its free

Upvotes: 2

poseid
poseid

Reputation: 7156

With Heroku you can host images that you store in the repository of your project. Just try this:

rails new mytest

create a simple page and link to a test image in your /app/assets/images

heroku create mytest123  # <-- mytest1234 must be your unique app name

and now push the repo to Heroku:

git push origin master  # origin points automatically to Heroku after you created this

This is the easiest way to host small projects for free. Sometimes the Dyno takes some time to startup, and you need to point the domain to the right proxy, but these issues can be dealt with later.

S3 comes into play when you deal with uploaded content / images. For this use case, you need S3 which is out of the scope of your question too.

Upvotes: 0

Michał Kwiatkowski
Michał Kwiatkowski

Reputation: 9764

Check out Shelly Cloud: https://shellycloud.com/ You get persistent storage (so you don't lose data in case of disk failure) and the deployment is optimized for Rails applications.

Upvotes: 0

Icicle
Icicle

Reputation: 1174

If you are interested in VPS, Digital Ocean - https://www.digitalocean.com/, provides excellent hosting starting from $5. And you can store your photos on the local disc.

There are very good tutorials on their site to get you started with.

Upvotes: 1

Tom Carchrae
Tom Carchrae

Reputation: 6486

there is no local storage with heroku - only temporary space. you'll need to use S3 or some off-site storage with heroku.

(and I agree, rails on DH is awful, even if you enable passenger)

Upvotes: 4

Related Questions