Here's what the one I used to deploy to Digital Ocean looked like:

FABRIC = {
    "SSH_USER": "do", # SSH username
    "SSH_PASS":  "", # SSH password (consider key-based authentication)
    "SSH_KEY_PATH":  "/Users/josh/.ssh/id_rsa.pub", # Local path to SSH key
file, for key-based auth
    "HOSTS": ['do.bitpl.us'], # List of hosts to deploy to
    "VIRTUALENV_HOME":  "/home/do", # Absolute remote path for virtualenvs
    "PROJECT_NAME": "do_test", # Unique identifier for project
    "REQUIREMENTS_PATH": "requirements.txt", # Path to pip requirements,
relative to project
    "GUNICORN_PORT": 8000, # Port gunicorn will listen on
    "LOCALE": "en_US.UTF-8", # Should end with ".UTF-8"
    "LIVE_HOSTNAME": "do.bitpl.us", # Host for public site.
    "REPO_URL": "https://[email protected]/joshcartme/vanilla_mezz";,
# Git or Mercurial remote repo URL for the project
    "DB_PASS": "abc123", # Live database password
    "ADMIN_PASS": "abc123", # Live admin user password
    "SECRET_KEY": SECRET_KEY,
    "NEVERCACHE_KEY": NEVERCACHE_KEY,
}

HOSTS is the hosts it deploys to, you can put more than one there and have
the site deployed multiple places at once.
VIRTUALENV_HOME is where the project will live on the server's filesystem
PROJECT_NAME can be anything
LIVE_HOSTNAME is what will get set in Site -> Sites in the admin

Let me know if you have more questions!


On Wed, Apr 2, 2014 at 10:38 AM, Kyle Pennell <[email protected]> wrote:

> Asking a question for myself and hope it helps other beginners out there.
>
> I'm trying to deploy using Fab File and Josh's 
> Tutorial<http://bitofpixels.com/blog/deploying-mezzanine-to-digital-ocean-using-the-included-fabfile/>
> .
>
> I was trying to fill in the Fabfile settings and simply don't understand
> what most of them refer to.  I can't tell what goes where.
>
> I didn't see Fabric in Stephen's example 
> project<https://github.com/stephenmcd/mezzanine.jupo.org>
> .
>
> Perhaps we could write an example that others could use?  Sort of plug and
> play?  (If this already exists, you could point me there)
>
> Here's the settings:
>
> FABRIC = {
>     "SSH_USER": "", # SSH username
>     "SSH_PASS":  "", # SSH password (consider key-based authentication)
>     "SSH_KEY_PATH":  "", # Local path to SSH key file, for key-based auth
>     "HOSTS": [], # List of hosts to deploy to
>     "VIRTUALENV_HOME":  "", # Absolute remote path for virtualenvs
>     "PROJECT_NAME": "", # Unique identifier for project
>     "REQUIREMENTS_PATH": "requirements/project.txt", # Path to pip 
> requirements, relative to project
>     "GUNICORN_PORT": 8000, # Port gunicorn will listen on
>     "LOCALE": "en_US.utf8", # Should end with ".utf8"
>     "LIVE_HOSTNAME": "www.example.com", # Host for public site.
>     "REPO_URL": "", # Git or Mercurial remote repo URL for the project
>     "DB_PASS": "", # Live database password
>     "ADMIN_PASS": "", # Live admin user password}
>
>
>
> Here's my project tree structure, verbatim from Digital Ocean's tutorials
> on Mezzanine, Django, Nginx, and Gunicorn. Mezzanine_app is the mezzanine
> app.
>
> ├── bin
> │   ├── activate
> │   ├── activate.csh
> │   ├── activate.fish
> │   ├── activate_this.py
> │   ├── django-admin.py
> │   ├── easy_install
> │   ├── easy_install-2.7
> │   ├── futurize
> │   ├── gunicorn
> │   ├── gunicorn_django
> │   ├── gunicorn_paster
> │   ├── mezzanine-project
> │   ├── pilconvert.py
> │   ├── pildriver.py
> │   ├── pilfile.py
> │   ├── pilfont.py
> │   ├── pilprint.py
> │   ├── pip
> │   ├── pip-2.7
> │   └── python
> ├── gunicorn_config.py
> ├── include
> │   └── python2.7 -> /usr/include/python2.7
> ├── lib
> │   └── python2.7
> │       ├── _abcoll.py -> /usr/lib/python2.7/_abcoll.py
> │       ├── _abcoll.pyc
> │       ├── abc.py -> /usr/lib/python2.7/abc.py
> │       ├── abc.pyc
> │       ├── codecs.py -> /usr/lib/python2.7/codecs.py
> │       ├── codecs.pyc
> │       ├── config -> /usr/lib/python2.7/config
> │       ├── copy_reg.py -> /usr/lib/python2.7/copy_reg.py
> │       ├── copy_reg.pyc
> │       ├── distutils
> │       ├── encodings -> /usr/lib/python2.7/encodings
> │       ├── fnmatch.py -> /usr/lib/python2.7/fnmatch.py
> │       ├── fnmatch.pyc
> │       ├── genericpath.py -> /usr/lib/python2.7/genericpath.py
> │       ├── genericpath.pyc
> │       ├── lib-dynload -> /usr/lib/python2.7/lib-dynload
> │       ├── linecache.py -> /usr/lib/python2.7/linecache.py
> │       ├── linecache.pyc
> │       ├── locale.py -> /usr/lib/python2.7/locale.py
> │       ├── locale.pyc
> │       ├── no-global-site-packages.txt
> │       ├── ntpath.py -> /usr/lib/python2.7/ntpath.py
> │       ├── orig-prefix.txt
> │       ├── os.py -> /usr/lib/python2.7/os.py
> │       ├── os.pyc
> │       ├── posixpath.py -> /usr/lib/python2.7/posixpath.py
> │       ├── posixpath.pyc
> │       ├── re.py -> /usr/lib/python2.7/re.py
> │       ├── re.pyc
> │       ├── site-packages
> │       ├── site.py
> │       ├── site.pyc
> │       ├── sre_compile.py -> /usr/lib/python2.7/sre_compile.py
> │       ├── sre_compile.pyc
> │       ├── sre_constants.py -> /usr/lib/python2.7/sre_constants.py
> │       ├── sre_constants.pyc
> │       ├── sre_parse.py -> /usr/lib/python2.7/sre_parse.py
> │       ├── sre_parse.pyc
> │       ├── sre.py -> /usr/lib/python2.7/sre.py
> │       ├── stat.py -> /usr/lib/python2.7/stat.py
> │       ├── stat.pyc
> │       ├── types.py -> /usr/lib/python2.7/types.py
> │       ├── types.pyc
> │       ├── UserDict.py -> /usr/lib/python2.7/UserDict.py
> │       ├── UserDict.pyc
> │       ├── warnings.py -> /usr/lib/python2.7/warnings.py
> │       ├── warnings.pyc
> │       ├── _weakrefset.py -> /usr/lib/python2.7/_weakrefset.py
> │       └── _weakrefset.pyc
> ├── local
> │   ├── bin -> /opt/myenv/bin
> │   ├── include -> /opt/myenv/include
> │   └── lib -> /opt/myenv/lib
> ├── mezzanine_app
> │   ├── deploy
> │   │   ├── crontab
> │   │   ├── gunicorn.conf.py
> │   │   ├── live_settings.py
> │   │   ├── nginx.conf
> │   │   └── supervisor.conf
> │   ├── dev.db
> │   ├── fabfile.py
> │   ├── __init__.py
> │   ├── __init__.pyc
> │   ├── local_settings.py
> │   ├── local_settings.pyc
> │   ├── manage.py
> │   ├── requirements.txt
> │   ├── settings.py
> │   ├── settings.pyc
> │   ├── static
> │   │   └── media
> │   ├── urls.py
> │   ├── urls.pyc
> │   └── wsgi.py
> └── myproject
>     ├── manage.py
>     └── myproject
>         ├── __init__.py
>         ├── __init__.pyc
>         ├── settings.py
>         ├── settings.pyc
>         ├── urls.py
>         ├── urls.pyc
>         ├── wsgi.py
>         └── wsgi.pyc
>
>
>
>  --
> 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.
>

-- 
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.

Reply via email to