• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Windows/Linux issue for deployment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
 
Ben


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

References: 
 >Permissions for Startup Script (From: Gino Pacitti <email@hidden>)
 >Re: Permissions for Startup Script (From: Pascal Robert <email@hidden>)
 >Re: Permissions for Startup Script (From: Gino Pacitti <email@hidden>)
 >Re: Permissions for Startup Script (From: Paul Yu <email@hidden>)
 >Re: Permissions for Startup Script (From: Gino Pacitti <email@hidden>)
 >Re: Permissions for Startup Script (From: Daniel Beatty <email@hidden>)
 >Re: Permissions for Startup Script (From: Gino Pacitti <email@hidden>)
 >Re: Permissions for Startup Script (From: Ramsey Gurley <email@hidden>)
 >Re: Permissions for Startup Script (From: Pascal Robert <email@hidden>)
 >Re: Permissions for Startup Script (From: David LeBer <email@hidden>)
 >Re: Permissions for Startup Script (From: David LeBer <email@hidden>)
 >Re: Permissions for Startup Script (From: David LeBer <email@hidden>)
 >Re: Permissions for Startup Script (From: email@hidden)
 >Re: Permissions for Startup Script (From: David LeBer <email@hidden>)
 >Re: Permissions for Startup Script (From: David Avendasora <email@hidden>)
 >Re: Permissions for Startup Script (From: David LeBer <email@hidden>)
 >Windows/Linux issue for deployment (From: Fanchon Benoit <email@hidden>)

  • Prev by Date: Re: ERXPatcher / WOBrowser / NSArray.addAll()
  • Next by Date: D2W, EditingContext, WORequest
  • Previous by thread: Windows/Linux issue for deployment
  • Next by thread: Re: Permissions for Startup Script
  • Index(es):
    • Date
    • Thread