Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# travislaborde 8/30/2007 4:41 PM
So, here is a scenario.... Please help me if you can.

1) I download and set up and install Cuyahoga, and it runs just fine.

2) I get it all configured and such and I deploy it to a "real server" somewhere, with it's own database etc.

3) Now I've got two installations, one on my XP box and one on the 2000 server, and everything works as expected.

4) Next, I download the "Contact Us" module from the contrib project to my XP box. I open the main Cuyahoga solution and add this project, and "rebuild." Reference problems aside (differing versions of log4net and nhibernate) I get it working just fine.

5) I browse to the site (localhost) and login as Admin, and go to Modules, and I see it there ready to install. I install it. All is right with the world. No problem.

6) Now I want to deploy just the new module to the server box so that I can login there and "install" it and then make use of it..... CANT FIGURE IT OUT :)


Sure, I could open up the solution on the server box and add the project and "rebuild" etc and it would probably work just fine, but... most people dont have that luxury. I'm feeling sure there must be an "xcopy" or "ftp" type of deployment that I'm failing to take advantage of properly...

What I have tried is to copy the Web/Modules/Contactus folder into the destination and the dll from the Web/bin folder as well.

What I end up with is a module that says it isn't installed (still shows up with the Install link in the add modules list) but is in fact installed and usable and working just fine. Bleh!

Please, can anyone help?

Thanks,
Travis
# martijnb 8/31/2007 9:36 AM
travislabordeWhat I have tried is to copy the Web/Modules/Contactus folder into the destination and the dll from the Web/bin folder as well.

That's exactly what should be done to deploy to a production server. Could you check if the module also maybe shows up in the list under a different folder?

The trick is that there is one convention: the module name in the cuyahoga_moduletype database table needs to be the same as the physical folder name in /Modules

# travislaborde 8/31/2007 6:09 PM
Thanks for the response! I'm not sure what you meant by showing up in a different folder, but your comment about the name needing to be the same made me check into something that I perhaps should have checked into before posting....

The Module downloads from the svn with a foldername that isn't the same case entirely as the class name. The module is called ContactUs but the folder is Contactus. Notice the lowercase "u" in there.

Fixing that solved the problem. As I said, the module was indeed installed, but showing up on the modules list as needing to be installed. All I did was rename the folder to ContactUs and all was well. When I went back to the module list it showed up as already installed. Cool :)

So, here is a walkthrough of the problem and solution for any who need it in the future:



The problem: Module was installed and works but shows up as not yet installed:




The folder name causing this problem:




Solution: Simply rename the folder to match the actual assembly name:




Solution Worked: Just log back in to the site and all of a sudden it knows it is installed:





Thanks again!
Travis