facebook

how to deploy to a remote (hosted) site?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #240176 Reply

    I am currently using MyEclipse to develop a web application that I intend to
    deploy on a hosted site. As I am doing my development I am using a local installation of Tomcat to do my testing. So far so good.

    I noticed that when MyEclipse deploys to the local server it deploys the application as a file tree directly to the ROOT context. So far so good.

    What I want to be able to do, is this:

    1) create a distribution directory to stage the site.
    2) copy WEB-ROOT/* to the distribution directory
    3) compile all the Java source sending the class files to {distribution.directory}/classes preserving the package directory trees.
    4) scp the results over to the remote web site.

    I used to do this under Netbeans by extending the build.xml file that it provides with the code to scp the files over (rsync actually, but that’s another story). The ant build file did the rest anyway (and built a war file.)

    Short of creating a custom ant script, anybody have any pointers on how to get this done?

    Peter L. Berghold — Unix Curmudgeon
    http://www.berghold.net (personal site)
    http://www.agilitystewards.org (my project)

    #240221

    Riyad Kalla
    Member

    I noticed that when MyEclipse deploys to the local server it deploys the application as a file tree directly to the ROOT context. So far so good.

    I would like to add that the only reason it does this is because you haven’t setup a Webroot context for the project. So it is possible to deploy to a non-ROOT folder (the setting is under Project Properties -> MyEclipse-Web)

    1) create a distribution directory to stage the site.
    2) copy WEB-ROOT/* to the distribution directory
    3) compile all the Java source sending the class files to {distribution.directory}/classes preserving the package directory trees.
    4) scp the results over to the remote web site.

    Peter, you more or less explained how deployment works in MyEclipse… you might consider simply using File > Export > J2EE > WAR File and then scp over the WAR file to your app server and be sure to have your app server set to deploy new WAR files, that would be a two step process.

    #240224

    Heh… I hadn’t even tried to export anything in Eclipse/MyEclipse yet… Thanks for the pointer!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: how to deploy to a remote (hosted) site?

You must be logged in to post in the forum log in