Anybody knows (A-Z)step by step popular instructions/guidance/tutorial/blog to install and deploy rails 3 app with Mysql DB on Amazon EC2 with capistrano including up setting up Apache and Phusion Passanger servers?Thank you very much.
Linode has a few tutorials. For example, this seem pretty useful.
http://library.linode.com/frameworks/ruby-on-rails-apache/ubuntu-10.04-lucid
Related
I've been serving my Laravel app on my local machine (MAC OSX Maverick) via the php artisan serve command in the terminal.
How do I install it to my a free a hosting for testing? Technically, I only have a free web hosting account. This means I can't perform any command-line commands (SSH). Is there any simple way to install it? Can I just simply copy my Laravel app folder and put it on a web host?
Easiest solution: Deploy it to OpenShift using a Laravel QuickStart. OpenShift is free, gives you SSH access, and basing your app off the Laravel QuickStart should handle the more complicated configuration bits.
"Can I just simply copy my Laravel app folder and put it on a web host?"
Pretty much this is the answer. You can upload your entire Laravel application to your webserver, and it should work.
But I'll warn you now that without command-line access - your going to have issues in the future. Try and find an alternative host for your website that provides command line access
My problem relates to having several different web applications (PHP & Rails) running on one server and deciding which server to use for Rails since it will be coexisting with a few PHP apps currently running on apache2 and there are a few choices out there when it comes to serving Rails apps.
We have a new Debian "Squeeze" server set up running Apache2. This server hosts PHP applications and we were asked to bring over a Ruby on Rails project and run it on this box.
The Rails app will not get too much traffic because it's a micro site for some of our business partners.
With that type of environment, what's the best app server choice for the Rails app knowing that Apache2 is already serving up PHP apps?
1) Apache2 with Phusion Passenger
2) Mongrel
3) Webrick
4) Something else?
Take a look at thin. It has native SSL support, its very lightweight and easy to setup (a line in your gemfile) and wouldn't interact with any other servers running on the host.
The Rails app will not get too much traffic because it's a micro site for some of our business partners.
Seems like Passenger would be a good fit as it's easy to configure to spawn/kill workers depending on the current traffic so you might save some resources most of the time.
I have an EC2 instance running with Glassfish Server Open Source Edition.
And now I need to setup the a website in wordpress.
How can I do that ?
I'm looking for 5 minutes installation tutorial but I'm stuck in the part where it's says about the webserver.
I have to install the Apache in Linux then enable the FTP access ? (to upload the wordpress files ? )
For now I'm stuck in this part guys, any tip is very welcome.
Ok. This is going to be a bit of a high level overview of what you need to do. Its a long process which you need to look into.
Glassfish server is (afaik) for Java applications. Wordpress is a PHP/mysql based system.
Apache is a free and open source web server which you can use, which integrates with php and mysql nicely. What you need is called a LAMP setup (LAMP stands for "linux, apache, mysql and php). You haven't specified what your EC2 is running (what linux distro) but lets say its Ubuntu. A quick search for "installing lamp ubuntu" on google turns up many different tutorials and walkthroughs for installing a lamp setup on your machine.
You'll need SSH access (which you'll have with EC2) then if you run through your tutorial of choice you'll have a working web server, you'll specify a public_html directory (usually by default /var/www).
Now to install Wordpress. What you could do is install an FTP server. This is going to be relatively complicated though, however it will be the easiest way to install Wordpress. Install FTP and upload the wordpress files to the public html directory, then you will be able to run through the 5 minute install process using the mysql database credentials you set up in the LAMP tutorial.
An easier way to do what you need to do is to install subversion on your EC2 instance - e.g. sudo apt-get install subversion on ubuntu. That way you can svn export the wordpress repository to your public html folder (http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion).
However, without an FTP server running on your EC2 instance you won't be able to FTP in to modify files or anything. You'll have to do everything over SSH (or SFTP) which may or may not be manageable for you.
In all honesty, and with the utmost respect, if you don't know about apache and installing a LAMP server and such then you're probably a bit out of your depth with Amazon's EC2 server. You'd be better off with a dedicated server from a hosting company who will have installed everything you need.
I am new to deploy a rails3.1 app to the AWS platform(heroku only previously).
However, I want to take the advantage of EC2 + S3 free-tier micro instance.
I've heard that there's something called AMI and some other things like Capistrano etc.
Can anyone explain the whole concept of AWS cloud computing?
How can I upload files to EC2? Via the terminal?
E.g. I am using ubuntu 11.10, Can I just type "rails s" in the terminal and then Ec2 just going running in production mode?
Thanks.
Amazon ec2 is just another service just like a dedicated server that you would get from certain hosting providers, an AMI stands for Amazon Machine Images, which is basically a pre-configured operating system, it can be any linux distro or even windows, once you decide on an AMI you will get a SSH account that you can use to connect to your server, you can use the command line to connect or any number of programs that can ssh, for instance I use zend studio on my mac and thats how I edit my files on the server but I also use the command line with the rsync command to backup all my files from the server to my laptop.
I'm trying to setup a production server for a rails 3 app on a single amazon ec2 instance, and am wondering what route to take.
I'm quite new to deploying rails apps - is there a pre-existing ami I can use for rails3?
Any tips/wisdom/advice appreciated - thanks!
I'd like to suggest to use verified EC2 AMIs, for instance by Rightscale. You can not use the Rightscale as a service, but theirs AMIs are pretty stable and reliable.
UPDATE: I advice to use Amazon Linux Machine based on CentOS 6
In terms of reasonably priced EC2 management services check out scalr.com.
As for gems that makes it easier to deploy Rails to EC2 have a look at Poolparty and Rubber.
Ubuntu has a nice guide on EC2 and Ubuntu images. https://help.ubuntu.com/community/EC2StartersGuide
Also see http://alestic.com/ I just set up one of these images on my EC2 free usage tier with no issues.