Re: [mezzanine-users] Re: What's wrong in my local_settings / how to do basic deploy to aws

2018-04-23 Thread Eduardo Rivas

Hi Wolfgang.

Production and development databases are kept separate, as well as media 
uploads. If you'd like to upload your database and media files from dev 
to prod you can add custom fabric tasks that do so.



On 2018-04-23 1:13 PM, Wolfgang M wrote:


You were perfectly right Christian. I needed the ssh_user:ubuntu and 
ssh_key_path settings in my fabric local_settings. Also Amazon Linux 
is RHEL based and uses yum not apt-get.



Those changes allowed me to run fab all.


I have some more questions about content deployment since after my 
deploy I thought it hadn't worked as my local edits weren't deployed. 
I'll try and sort that out on a relevant thread.


On Friday, April 20, 2018 at 2:34:53 AM UTC-5, Christian Hoffmann wrote:

Perhaps better try Ubuntu 16.04 AMI for your first deployment. --
Christian

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


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


[mezzanine-users] Re: What's wrong in my local_settings / how to do basic deploy to aws

2018-04-20 Thread Christian Hoffmann

Hello Wolfang,

for AWS you need to configure fabric to use key based login:

Try to add the SSH_KEY_PATH Variable to your local_settings.py.
FABRIC = {
"SSH_USER": "ubuntu", # SSH username
"SSH_PASS":  "", # SSH password (consider key-based authentication)
"SSH_KEY_PATH":  "/Users/myaccount/.myaws-keys/my-aws-key-frankfurt-1.pem", 
# Local path to SSH key file, for key-based auth
"HOSTS": ['ec2-xx-xx-xxx.eu-central-1.compute.amazonaws.com',], # List of 
hosts to deploy to
.
}


Be aware of the following: Amazon Linux IS NOT Ubuntu Linux. 

All the fabric def functions() for server deployment in the default 
mezzanine fabfile are for UBUNTU. 
Ubuntu uses "apt-get", but Amazon Linux is using "yum" - if you need Amazon 
Linux, you must rewrite the fabfile.  

Perhaps better try Ubuntu 16.04 AMI for your first deployment. -- Christian

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