Re: Windows/Linux issue for deployment
Re: Windows/Linux issue for deployment
- Subject: Re: Windows/Linux issue for deployment
- From: Daniele Corti <email@hidden>
- Date: Fri, 27 Jan 2012 14:23:20 +0100
Hi Ben!
2012/1/26 Fanchon Benoit
<email@hidden>
Hello,
I'm under Windows for development and Linux for deployment.
And this is a bad thing! IMHO, development and deployment environments must be the most similar possible! Can I suggest you to implement a staging machine with a Linux OS to check the changes before relase them?
The WOLips "WOLips Ant tools -> Install" which creates the Project-Application.tar.gz and Project-WebServerResources.tar.gz.
I expand themin correct places and chown them (by the way, it seems that the these two places are interverted in
http://wiki.wocommunity.org/display/WONDER/Your+First+Deployment).
Now the issue is that the script
/opt/Local/Library/WebObjects/Applications/Project.woa/Project
don't work because it has windows endlines. I have to use "dos2unix".
And the error message isn't exactly meaningfull.
(I didn't test so far but there might be the same problem when developping undex Linux and deploying for Windows - unless Win doesn't care bad endlines)
That's quite strange, because I develop under Mac OS X ( \r new line) and deploy under linux (\n new line), but I've no problem with it...
Well, for me it is not a real issue because I've found how
to correct it.
I suspect that it should be simple to create the script with Unix endlines, but I don't have any idea where to look for the related function.
So I'll just send a RFE, because WOLips already does such a wonderful job that it's too bad it finally doesn't work
(and/or maybe put a hint on the already mentioned
http://wiki.wocommunity.org/display/WONDER/Your+First+Deployment).
If you are sure that the problem is only the new line character, then you can simply change it in the Eclipse configuration (Globally or for each project) here you can see how to do it
http://stackoverflow.com/questions/1886185/eclipse-and-windows-newlines but, I suggest you to check what dos2unix do to you files. Does it change the character set too? I think that there could be a problem also there.
Regards
--
Daniele Corti
--
I DON'T DoubleClick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden