Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The following article explains detailed how to create a custom Tomcat based AMI for Beanstalk. The key is running the following commands before creating your AMI:

sudo -s
cd /etc/init.d
./httpd start
./tomcat7 start

However I didn't find any documentation what the configuration must look like on the new Ruby based Beanstalk servers.

Does anyone already have experiance with it?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

The new Ruby based Elastic Beanstalk containers do not require any special configuration prior to deploying your Rack based web application. You may find you need to customize the environment.

If you need to manage the packages installed on your environment, you should use the .ebextensions configuration that is deployed with your web application. You can learn more about this here and here.

If you need to install Ruby gems that your web application relies on, you should include a Gemfile with your web application. These gems will be installed when deploying your application.

share|improve this answer

Im looking to add redirects in nginx.. I am trying to avoid having to create a custom AMI so will love if anyone have a way to do this from .ebextensions if not can you give more details? for what I understand if I get the ruby/rails aws eb ami and I start it on a ec2 instance, already comes with passenger and nginx pre-installed? so I just need to modify the configuration? Thanks!

share|improve this answer
    
container_commands: replace-config: command: cp .ebextensions/server.xml /etc/tomcat7/server.xml so I guess I can copy the nginx file and overwrite it with my version ... cool –  merge delete Dec 3 '12 at 22:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.