On Wed, 2009-07-15 at 10:38 -0400, Shawn Milochik wrote: > I need to set up a one-click deployment from development to > production. What tool(s) are currently best-of-breed in the Django > community? Thanks in advance. >
I use fabric, but its not exactly best of breed. It does the job quite well though, and is getting better. > The tool must be able to automate the following manual process: > > 1. Log into the production server via ssh, using a user ID which > requires a password (no public key encryption). > > 2. Run 'sudo bash' then 'su - otheruser,' where otheruser is the ID > under which Django runs. I can't log in via ssh directly > as this user for security reasons, and they have no password, so I > can't directly su to that account Any reason why you can't do 'sudo -u otheruser bash -l' or even 'sudo su - otheruser'? Seems strange to be able to sudo to root, but unable to sudo to a role account. > . > > 3. As 'otheruser': > killall python > cd $SITE > ./manage.py migrate > ./manage.py runfcgi host=127.0.0.1 port=8100 -- > settings=companyname.web.sitename.settings > ./manage.py runfcgi host=127.0.0.1 port=8200 -- > settings=companyname.web.othersite.settings > ./manage.py runfcgi host=127.0.0.1 port=8300 -- > settings=companyname.web.coolsite.settings > ./manage.py runfcgi host=127.0.0.1 port=8400 -- > settings=companyname.web.funsite.settings > > 4. (Possibly optional but highly desirable): > kill and restart nginx, which requires satisfying the prompts for the > passkeys for each SSL certificate we use. > Fabric currently requires specific password prompt detection for each app that requires passwords. I doubt it has it for nginx, it probably doesn't look like a SSH password prompt. Cheers Tom --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---