Friday, January 25, 2013

Re: Moving a Django website to another server

I was looking for a consistent and error-free deployment as I switch
between servers frequently despite using the same public domain. rsync
was great but I had to manually reload server thereafter or issue a
syncdb, etc.

I have since moved to Fabric for my deployment needs. See
http://docs.fabfile.org/en/1.5/tutorial.html.
With Fabric, I only need to issue one command for daily deployment to
existing or new server, e.g. fab deploy, under my Django project
directory to deploy the project.

On Sat, Jan 26, 2013 at 9:04 AM, Adrián Espinosa
<mortuuslordofdeads@gmail.com> wrote:
> If both hosts are Linux, you can use "rsync -avuzr source destination".
> Option -z enables compression
>
> On Friday, January 25, 2013 11:20:49 AM UTC+1, John Robertson wrote:
>>
>> Hi there, if I want to move a Django website to another host, is it as
>> simple as copying across all the site files and DB (and changing config
>> files)? If so, is there some kind of tool to create a zipped folder of the
>> website so that FTP does not take several hours! Sorry if this seems a very
>> basic question, but I just wanted to check before I proceed with it. They
>> are fairly simple, small sites, but still there are thousands of files.
>>
>> Many thanks!
>> John
>
> --
> 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+unsubscribe@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
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+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate