Link to home
Start Free TrialLog in
Avatar of WestCoast_BC
WestCoast_BCFlag for Canada

asked on

how to package and install a website written using Lucee (coldfusion)

I have created a website using mostly Lucee (coldfusion) but it also has some javascript code, php and a MySQL database. I would like to use the same code for a new website and it would use its own database. What is the best way to copy over the files? One option is to use FTP to upload the files but that takes a long time since there are a lot of files. Is there a way to package the files into one file and then install it for the new website?

Also, I have noticed that a copy of my cfm and cfc files are found in a directory called cfclasses and they have been renamed. It seems that *.cfm have been renamed to *_cfm$cf.class and *.cfc have been renamed to *_cfc$cf.class. Are these precompiled files? Can I use these files instead to speed up loading of the site and so that I don't have to give away my source? If so do I have to rename all of these files back to their original names? Is there a fast way to do this?
Avatar of leakim971
leakim971
Flag of Guadeloupe image

do you have ssh access ? so you just need to "zip" the main folder
If you do have ssh access fastest transfer will be to...

1) Do a mysqldump into your site directory.

2) Do rsync with ssh authentication to copy over your old site to it's new location.

Using rsync ensures if transfer is interrupted (you mentioned you have many files), then you can just restart + rsync will resume at the point where it left off (rather than transferring all files every time).
Avatar of WestCoast_BC

ASKER

I do have access to ssh so I can try rsync. I just did a quick google search about rsync and it seems to be a tool for syncing between 2 different servers. I did not mention that all of my sites will be on the same server. Should I still use rsync?

What about the precompiled files that I have? Can they be used instead so that I can secure the source?
ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial