I'm a beginner for this and currently finding a free web host and has a couple of questions.
- Will Heroku be able to handle all of this: AngularJS, Ruby on Rails, and sqlite3?
- What are other good free web hosts? This is just for a personal portfolio/blog.
I'm seeing several tutorials in the internet and just like to have the simplest one.
If it helps, my root/home page is at app>views>application>application.html.erb and I don't have an index.html. I also develop on Windows 8.1.
Thanks in advance!
Best How To :
If you are using Rails to serve the API to the Angular-powered frontend in your app, there shouldn't be a problem with Heroku hosting your app. Here is a live example of an Angular/Rails app being hosted on Heroku.
However, Heroku does not support SQLite.
While easy to use, SQLite is not intended as a production grade database. Instead Heroku provides production grade PostgreSQL databases as a service.
- SQLite on Heroku
The article above shows you how to configure your app from using SQLite to Postgres, which Heroku supports.
Note: It's always a good idea to have the same database setup for both your development and production environments. However, if you're starting out and building a very simple application, and want to quickly get started with Heroku, there's another option below:
If you want to continue using SQLite3 in development, you can leave your
sqlite3 gem in your
:development group, and add the
pg gem to the
:production group in the app's Gemfile:
group :development do
group :production do
And then set up your
config/database.yml file accordingly (sqlite for development/test, postgres in production):
This way you wouldn't need to install/configure Postgres locally if you only want to make a simple application to host on Heroku.
Hope this helped!