to create compressed archives, though zip and unzip commands are likely available
too. If you use ftp (faster, but less secure than scp/sftp), be sure to transfer in binary
mode (text is the default, and will cause problems for bytes in the compressed file
that look like carriage return or line feed).
Whether it is just a matter of copying "everything" depends on how compatible the
two machines are. For example, if you are using the system's base python, rather
than installing one of your own, and the two are different versions, they .pyc files
will not be compatible. Also, if you installed django and other apps naively, they
may be in directories that you aren't copying. It is also possible that there are
dependencies (libraries linked against by the egg installers) that are missing
or incompatible on the new box. There are also presumably http server and
database servers that need to be installed, and which have configuration files.
So, unless you're cloning the whole OS install onto a compatible piece of hardware
(and even there you should do things like fix up the network configuration and
ssh machine keys) I think that you're going to have trouble "just copy"ing.
Bill
On Fri, Jan 25, 2013 at 10:22 AM, Oscar Carballal <pizted@gmail.com> wrote:
For our project e-cidadania it was like that, we only had to make a
clone of the git repository and we made a symbolic link to the config
files (so we can pull the code without affecting the config). After
that we made an import into the new database, fix the config files et
voilá.
You can try SSH if you have it available, via the "scp" command, it's
faster and easier in my opinion, but if you only have the FTP
available you should take care of the file permissions and user/group.
Regards,
Oscar Carballal
2013/1/25 John Robertson <linksstreetdesign@gmail.com>:
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.> 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.
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.
No comments:
Post a Comment