Ruby on Rails Thursday, July 5, 2012

Hello there,

I have been working in a startup for a few weeks now, and I am responsible for setting up the production environment and for "strengthening" the product (a rails app).
By the way I've started reading "Deploying rails" from pragprog.

The deployment of the app will be done through a private beta with about 200 members.

The startup currently owns a VPS where the staging environment runs.
For now, it is planned to install the production environment on the same server. (I guess it's not ideal, but is this a real mistake? should we reconsider those small savings?)

I inherit this configuration from the VPS: a ubuntu install, with MySQL, Apache/Passenger and Sphinx. Deployment is done via capistrano.
(Do you have any comments about the apache/passenger combo ? How is it compared to nginx/unicorn ? Should we consider changing?)

Here is my battle plan:

Concerning the server/monitoring part
- I consider installing the New Relic service and gem to monitor the app and the server.
- I consider using Papertrail to aggregate all the logs (server and app).
- Stay with exception_notification (by mail) or use Airbrake to track notifications.

Concerning the app itself
- I have finished migrating the static files to the assets pipeline. (These assets are precompiled by capistrano when deploying).
- I consider migrating the assets to Amazon S3 (I consider specifying the host-name and using the "asset_sync" gem for the static assets, and use the "fog" gem for the uploads through carrierwave).
- Use a task queue for time-consuming tasks (especially sending mails, are there other task to immediately delay?), with "delayed_job"
- Use SendGrid to send mails generated by the app

Do you have any remarks, suggestions ?
Are there things bothering you concerning the choices (they are of course temporary) of services or gems ?
Have I forgotten important points ?

Thanks a lot

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/fCC5HMguHLgJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

No comments:

Post a Comment