On Sunday, 20 July 2014 01:23:50 UTC-6, Sharoon Thomas wrote:
>
> On Jul 20, 2014, at 9:51 AM, Dale Scott <dale...@shaw.ca <javascript:>>
> wrote:
>
> On Jul 19, 2014, at 8:07 PM, Mark Hayden <mark.sha...@gmail.com
> <javascript:>> wrote:
> On 19 Jul 2014 19:43, "Sharoon Thomas" <sharoon...@openlabs.co.in
> <javascript:>> wrote:> On 20-Jul-2014, at 5:47 am, Dale Scott <
> da...@dalescott.net <javascript:>> wrote:>>>> I provisioned a new
> fbsd-10-release server from scratch, performed all updates and installed
> trytond. Everything works. I've learned I can't update an existing server
> though...
>
> > Using virtualenv is the recommended approach in the python world. In
> which case you could have dropped just the virtualenv and created another
> one instead of provisioning new server.
>
> Dale, this virtualenv approach is how I have done it...it is easier to
> reinstall this way than reverting back the KVM virtual machines I use. Not
> sure if there are differences in BSD but it works well for upgrading to
> install in a fresh virtualenv and point to existing database. I've not had
> luck upgrading via PIP.
>
> I could try to help you if you want to try that approach...
>
>
> Can you give me the command line basics? I'll see if I can make it work. I
> should also be able to use a FreeBSD jail, but I haven't had time to figure
> that out either.
>
> Dale
>
>
> The documentation needs to get better, but here is a quick start [1].
> If this is a development environment, I strongly recommend
> virtualenvwrapper [2] which keeps your workspace organized. This is even
> more true for developers who have to run multiple versions of tryton.
> Though FreeBSD jails are great (if you are concerned about security) it
> would be an overkill if your only intention is to stay away from python
> packaging mess.
>
> I have put together some frequently used pip command combinations used in
> the tryton context [3]. (This should probably go into the tryton
> documentation too).
>
>
> [1]
> http://tryton-documentation.readthedocs.org/en/latest/installation_configuration/installation.html#creating-a-virtualenv
> [2] http://virtualenvwrapper.readthedocs.org/en/latest/
> [3] https://gist.github.com/sharoonthomas/72ff0af2809932d35426
>
>
Hi Sharoon, thanks for the tips. I've installed virtualenv and am working
through the examples. How do you manage production servers? Do also you use
virtualenv on production servers?