Hello, I saw the recent posts about aws but didn't want to hijack a thread 
with my own questions. I have an app I really like that I've made with 
mezzanine, can someone point out what's wrong with my deployment. I'm 
following the standard deployment in the tutorials and am trying to get it 
online using aws, either ec2 or elasticbeanstalk. 
Also if someone can explain how git works for a deployment that would be 
great. Do I push my local MyProject folder contents to a repository, then 
pull that to the ec2, (and separarely transfer local_settings.py to keep 
secret keys off of git)? Or does the fabric deployment suggest I handle it 
all remotely and not within an ec2 instance, and if so how does git 
integrate with fab?

local_settings.py 

> # This file is exec'd from settings.py, so it has access to and can
> # modify all the variables in settings.py.
>
> DEBUG = False
>
> # Make these unique, and don't share it with anybody.
> SECRET_KEY = "12345SecretKeyHidden54321"
> NEVERCACHE_KEY = "12345NevercacheKeyHidden54321"
>
> DATABASES = {
>     "default": {
>         # Ends with "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
>         "ENGINE": "postgresql_psycopg2", #django.db.backends.sqlite3
>         # DB name or path to database file if using sqlite3.
>         "NAME": "", #dev.db
>         # Not used with sqlite3.
>         "USER": "",
>         # Not used with sqlite3.
>         "PASSWORD": "",
>         # Set to empty string for localhost. Not used with sqlite3.
>         "HOST": "",
>         # Set to empty string for default. Not used with sqlite3.
>         "PORT": "",
>     }
> }
>
> ###################
> # DEPLOY SETTINGS #
> ###################
>
> # Domains for public site
> ALLOWED_HOSTS = ["myCustomRoute53domain.me"]
>
> # These settings are used by the default fabfile.py provided.
> # Check fabfile.py for defaults.
>
> FABRIC = {
>      "DEPLOY_TOOL": "git",  # Deploy with "git", "hg", or "rsync"
>      "SSH_USER": "ec2-user",  # VPS SSH username
>      "HOSTS": ["54.219.###.###"],  # The IP address of your VPS
>      "DOMAINS": ALLOWED_HOSTS,  # Edit domains in ALLOWED_HOSTS
>      "REQUIREMENTS_PATH": "requirements.txt",  # Project's pip requirements
>      "LOCALE": "en_US.UTF-8",  # Should end with ".UTF-8"
>      "DB_PASS": "default",  # Live database password
>      "ADMIN_PASS": "default",  # Live admin user password
>      "SECRET_KEY": SECRET_KEY,
>      "NEVERCACHE_KEY": NEVERCACHE_KEY,
>  }
>
>
Yellow are the important questions I have, red is values I'm unsure of. I 
know these are some simple questions, so I'm hoping to figure this out and 
do a tutorial on it for other beginners. Right now I have my app on my home 
computer, and I have an ec2 instance open on aws, which I've connected to 
using the aws CLI to install mezzanine and git in preparation. Thanks in 
advance to anyone who can help. So far whatever values I put only result in 
"fab all" and other fab commands hanging with no response.

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to