Can I use cassandra with heroku? - ruby-on-rails

Is it possible to use cassandra with heroku?

No and yes.
It depends on whether you mean use a Heroku-hosted Cassandra instance or not. If that's what you mean then the answer is no (for now at least). They support PostrgeSQL within their stack and MySQL through Amazon RDS. MongoDB support is in beta (partnering with MongoHQ) and CouchDB is roadmapped for later this year (in conjunction with Cloudant).
But of course there's no technical reason to stop you from deploying Cassandra elsewhere (say on EC2) to work with your Heroku app. So in this context the answer is yes.
UPDATE (2012/09):
Heroku has launched a new add-on for Cassandra hosted by Cassandra.io. Details available here.
UPDATE (2014/11):
The Heroku Cassandra beta addon is no longer available nor does cassandra.io seem to exist anymore. ATM no Cassandra addon is available so only rolling your own as detailed above is possible.

Yes take a look at http://cassandra.io for a hosted Cassandra solution and heroku addon.
We are in private beta as you can see here: https://addons.heroku.com/cassandraio
You can provision the addon using the following command:
heroku addons:add cassandraio

There is a Cassandra heroku add-on available for Instaclustr.

This is no longer the case. There is a company with a solution currently seeking testers:
http://permalink.gmane.org/gmane.comp.db.hector.user/4928

Related

How do I deploy a Dockerized multi-image JS app to Heroku?

I want to deploy a simple web app to Heroku.
The front-end, back-end, and database of my web app are bundled together with docker-compose.
The Heroku documentation says that typing heroku container:push web should be sufficient to push my app to Heroku, once I have created the appropriate images with docker-compose. This doesn't work for me: the Keroku CLI tells me No images to push.
Adding a -a myAppName tag doesn't help either, nor do other posts on Stack Overflow.
I would prefer not to try this solution, as it would pollute my source control with Heroku-specific configuration.
What can I do to understand what is not working and why?
Docker compose on Heroku is just for local development. You should look at heroku.yml for deployment. Reference. Heoku.yml

Ruby on Rails application deployment on local computer with postgresql

I am new to Ruby on Rails. We have developed an small application with Postgresql. Now we have to deploy it. But when i searched over internet i found lot of suggestion is to deploy them on Heroku or some premium servers. where we are not in a position now to deploy it on cloud.
How can i deploy the application on local computer? Is this similar to setting up a development environment?
Any link or lead will be much appreciated!
I hope you have your application already running on your development environment.
Create another database in your postgres, to use it for production in local system. And make necessary changes in database.yml
I feel passenger is the easiest way to deploy application, you can follow the steps in this link https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-passenger-and-apache-on-ubuntu-14-04 to deploy your app.
Heroku also have free deployment for few application. You can use heroku.
There are some more option like AWS, Digital Ocean. AWS is also free for one year.
Yes setting up a development environment is like set up your environment. But best practice is use a deployment automation like capistrano.
You can run it in a production environment and make it public. I had written a blog post regarding this.
Please check here
ps - Make sure your system is up for public access and i am hoping that this is for test purpose only and to show it to your clients.
Yes, it would be fairly similar to setting up your development environment.
In addition to setting up Passenger as described in the Digital Ocean post from Rajuk's answer, I use Capistrano for deployment to my Ubuntu servers. You can set up the Capistrano deployment configuration to deploy to any machine.
The possible configuration variables are too numerous to address here without further details about your specific situation.
Check out Railscast #335 Deploying to a VPS where Ryan talks about deploying to a Linux machine (a cloud VPS in this case) with Capistrano.

How to deploy Rails app (like redmine) on load-balanced PHP server?

I'm new to Ruby and Rails, but my team is interested in using Redmine for project management. So my question is as follows: How does one deploy Redmine to a load-balanced server (so really two servers) that doesn't currently run and Ruby/rails apps? Would it be necessary to install ruby/rubygems/etc on both servers and proceed with the installation from there? Thx.
If you are going to deploy any rails app, you'll need to have ruby, rubygems, and probably phusion passenger or some other app server (thin, etc.), on both servers.
For redmine, you should consult the install docs:
http://www.redmine.org/projects/redmine/wiki/RedmineInstall
And the howto guides for install:
http://www.redmine.org/projects/redmine/wiki/HowTos
In general, when load balancing, the trick is the db, and you can use a number of tricks to replicate and load balance the db, as with any other rails app.
There seems to be one guide for that in the wiki, that leads to these (not terribly helpful) comments:
http://www.redmine.org/boards/1/topics/24727?r=24739#message-24739
http://www.redmine.org/boards/1/topics/16687
My own advice would be to set-up both servers as serving up the rails app, but have one be the active master db, and the other the passive slave, then set-up monitoring on the master and if it goes down, promote the slave to master. How to do this is a longer answer, and much code has been written in this direction. Look-up DRBD and Heartbeat for how to do this on linux for mysql.

Chef and application deploy

How is it possible to keep my rails application up to date using chef?
While reading documentation I understood how to set up servers from scratch using knife bootstrap. But is it possible to run another tasks after this?
Earlier I have used capistrano but now we have two staging and ten production servers which needs to be up to date when new version of the application is released.
The best thing to do is to look at the built in Deploy resource
You might also want to look at the Application cookbook. This is a bit harder to grok, but it lets you deploy an application driven off a databag.
I found new gem on this topic:
https://github.com/iain/roundsman - it's capistrano + chef-solo integrated

Version Control and Deploy Rails Project with cPanel

In my server, what option i got is a basic unlimited server can host unlimited rails project
possible to manage gem because it is using cpanel latest version with a ssh
now my confuse is ,
how can i use the no ssh feature in the cpanel and ease my deployment ?
i don't know is that possible to use the capistrano and git with it
any guidance for this ? to make it possible to update with git push feature
i never deploy anything before ,
i tried to use heroku but i don't know why many user can make their file fit the 5mb space...
my project is now 30% at progress but the space used was 14mb...
so, i bought a cheap standard web server with cpanel . any one could help me in this case ?
usually how you guy deploy and where you deploy ?
recently one guy gave me a link for the github deployment, is that possible to make github use in the cpanel server ?
i mean like host and push the file into github and then link to the personal server ?
anyway, thx for person who reply me recently ^.^
i just develop for hobby...any cheap rails server suggest ?
Thx a lot for reply~
You could also try heroku (www.heroku.com) as a hosting platform. It has a simple deployment workflow that uses git.
Unelss you've done it already, you'll need to install git on your local machine.
Here's a bit about capistrano too.
Capistrano is basically a series of scripts (that you run from your local machine) that get your code and put it on your web server(s). You can configure capistrano to either check out your code from git on the production server, or to copy your code from your local machine.

Resources