realpython / flask-deploy

Check out the blog post:

Home Page:https://realpython.com/blog/python/kickstarting-flask-on-ubuntu-setup-and-deployment/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

would it be possible to update the fabfile.py for python3?

puddleslice opened this issue · comments

it works beautifully for python 2. i've almost got it working in python 3 except in the output it keeps saying "using executeable /path/to/python2". not sure what i'm doing wrong.
i think my error is somewhere in lines 55 and 56 of fabfile.py

        sudo('virtualenv -p python3 env')
        sudo('source env/bin/activate')

it keeps activating the python 2 virtualenv.

that would be great if you guys could offer maybe another repo or update this one, or comment out for a python 3 version. thanks for all the great work!