Ken, Travis
Thank you for your support. I found the going very boggy and have come
to the conclusion there must be an easier way.
I'll try and find that and document it.
TL DR;
I got Mezzanine going some years ago with Python2.7 and I have dim
memory of difficulties back then.
This time I tried really hard for a few days to tweak things so they
worked in Python3.6 and discovered Travis's video useful but it didn't
work for me. The process kept aborting with errors. I did try a number
of manual installation workarounds but In the end I decided to to give
in and just go back to Python2.7.
So I installed Py2.7 on the droplet and was about to go through the fab
steps but decided I should first capture the exact errors I was getting
with Py3.6 in order to report back to the list. So I cranked up a Py3.6
machine again and used "fab remove > fab_remove.txt" and so on to
process remove, install, create and deploy.
I can send these four text files off-list if you like. I think it would
be too much to send on-list.
To my surprise, that installed Mezzanine on the droplet under Python3.6.
I'm guessing it worked because I had installed Python2.7 on the droplet.
Can't be sure but that's a strong hunch.
The SSL template side of deploy was a disaster so I started from scratch
and went to certbot for SSL. With a bit of fiddling and adjusting
permissions for the unix:// socket I finally got the deployed website
running. It hasn't been my finest hour(s).
Now a semi-related question for you.
I understand virtualenv for development of a Mezzanine project but why
is it necessary for a deployed site?
If I'm to document an easier way, I need to first state an assumed
workflow and deployment objective for an assumed target audience.
At this point I am the easiest of target audiences. All I have done to
"tweak" my Mezzanine deployment is disable Twitter. So that would be my
assumed target audience.
While I am a Django developer and happily use virtualenv I deploy all
sites from a repo directly to vhosts on staging and production machines.
Is that a fair "easy" scenario?
Thanks again
Mike
On 1/05/2019 10:26 pm, Ken Bolton wrote:
Mike,
Ignore my last email, follow the tutorial expertly produced by Travis.
-ken
On Wed, May 1, 2019 at 1:19 AM <[email protected]
<mailto:[email protected]>> wrote:
Thanks Ken
I have made a start but its heavy going. Mercurial demands
Python2.7 unless there is an env var HGPYTHON3=1 and then there
are pip things falling over as well.
I'll keep trying
M
On Tuesday, April 30, 2019 at 10:29:46 PM UTC+10, Ken Bolton wrote:
Hi Mike,
Fabric3 and Python3 were used on the dev machine and
Python3.6 is
You need to use an earlier version with the fabfile;
`fabric==1.2.2` works, if the mailing list archives are to be
believed. The alternative would be a rewrite of the fabfile to
account for changes in the Fabric api.
To start using python3, modify your fabfile
https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py#L446-L447:
apt("nginx libjpeg-dev python3-dev python3-setuptools git-core
" "postgresql libpq-dev memcached supervisor python3-pip")
Not sure what else you might have to change, but if you manage
to deploy, a pull request of your changes would be greatly
appreciated!
-ken
--
You received this message because you are subscribed to the Google
Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Mezzanine
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.