Deploying modern web apps (apt vs pip/rvm)
Adon Metcalfe
adon.metcalfe at gmail.com
Wed Jan 16 01:28:41 UTC 2013
Hi Ahmed,
We are similar, we run ubuntu, and use pip, npm, rvm as alternate package
managers. We basically decide if the project is stable/changes less than
quarterly, use the apt-get package, otherwise use whatever package manager
for the language you're using as they will almost always be more up to
date. To ensure consistency between environments, all servers have a base
set of pip/npm/rvm packages that are managed just like apt packages (i.e.
when we run upgrades we do them as well for the system), and everything
else is managed in isolated containers per application. This means we can
pick up an app from any of our app servers and it will run on any other
one, but also lets apps run newer/different versions of packages if
required. Virtualenv's/node local packages are very useful for sorting this
out (we have a lot less ruby than python/js so the one app now just uses
system packages).
Kind Regards,
Adon
On Wed, Jan 16, 2013 at 1:37 AM, Ahmed Kamal <kim0 at ubuntu.com> wrote:
> Hi there,
>
> We're building (and deploying) a large scale app (python+rails+mongodb)
> and others. Now developers are running rampant install python dependencies
> from pip, and ruby stuff with rvm...etc. Some of the packages needed, are
> in apt repos, some are older versions, and some are not there at all.
>
> Now I'd like to pick the pool of expertise here:
> - Where do we draw the line, between using OS packages vs pip/rvm
> - How do we best ensure same environment on dev env, vs production env
> - What are the best practices here
>
> Thanks for sharing
>
> --
> ubuntu-server mailing list
> ubuntu-server at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
> More info: https://wiki.ubuntu.com/ServerTeam
>
--
Regards,
Adon Metcalfe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20130116/63f5b0c4/attachment.html>
More information about the ubuntu-server
mailing list