facebook

Resin 3.0 – Is is possible to deploy to specific directory?

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

    ericmick
    Member

    I’m trying to switch our project to Eclipse/MyEclipse. The current build creates a deploy directory and the Resin configuration file references it. When configuring my project to deploy there are no options to specify a deployment directory. It appears that I can only deploy the Web app to RESIN_HOME/deploy.

    Here’s the Resin conf snippet:

    <!– configures the default host, matching any host name –>
    <host id=”” root-directory=”.”>
    <!–
    – configures an explicit root web-app matching the
    – webapp’s ROOT
    –>
    <web-app id=”/” document-directory=”C:/company/dev/app50/deploy/b2c-admin/wwwroot”/>
    </host>

    Thanks.

    Eric.

    #236158 Reply

    Riyad Kalla
    Member

    Eric, when you create the deployment, you can use a custom location to specify a directory of your choosing, does this suffice?

    #237142 Reply

    ericmick
    Member

    I don’t see this option. Click Deploy and there is no way to change the deployment location. It’s read only and always points to the Resin home directory.

    Eric.

    #237143 Reply

    Riyad Kalla
    Member

    Eric,
    When you go to create the deployment is when you have the option, not after. Also what version of MyEclipse are you using? I believe this was either added in 3.8.4 or during our 4.0 release cycle, so if you are using an old enough version it’s possible that the feature isn’t even there.

    #237144 Reply

    ericmick
    Member

    Thank you. I figured it out. You are right. I just needed a little clarification. When I ADD a deployment I have to select “Custom Location” and NOT “resin”. Then I can browse to the directory to deploy to.

    Eric.

    #237208 Reply

    ericmick
    Member

    I was a little hasty thinking it was solved. I have a single Web project with the web context set to root “/”. When I create the deployment I select “Custom” and point to the deployment location “../deploy”. However, MyEclipse always appends the project name “b2c” and deploys to “../deploy/b2c”. I can see this path in the deployment dialog after it’s created. Is this a bug?

    BTW: MyEclipse v4.0GA

    Eric.

    #237209 Reply

    Riyad Kalla
    Member

    It’s not a bug, the reason for this is because when you “Remove Deployment” the directory you deploy to is erased, in our previous version we let people deploy to anywhere, a few deployed to C:\ and some to their Desktop… needless to say when they went to “Remove Deployment” they also killed their computers. So as a safety measure we force users to put their deployments into new dirs. If your deploy dir is not important, you can erase it and then setup your deployment to that dir.

    I would suggest not deploying inside of your own project.

    #237260 Reply

    korzh
    Member

    I would like to ask also:
    why Resin 3 deploying folder is set to RESIN_HOME/deploy instead of RESIN_HOME/webapps as it should be?

    #237262 Reply

    korzh
    Member

    Just to clarify. Above I meant:
    “Why Resin3 deploying folder IN MYECLIPSE is set …”

    #237267 Reply

    Riyad Kalla
    Member

    Resin supports deploying apps automatically that are placed in it’s /deploy folder.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Resin 3.0 – Is is possible to deploy to specific directory?

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