New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local redeployment #123
Comments
You'd have to request these things from the Cargo project. My plugin only passes the calls to the Cargo Ant tasks. |
Hi bmuschko, btw: nice plugin, it makes our setup with gradle much simpler! |
The actions you mention are already part of the tasks provided by the plugin: BTW: You cannot combine the local tasks with the remote tasks of the plugin. They severe distinct use cases and also work differently under the covers on the Cargo side. You might also want to watch this video. It might help understanding some of the use cases. |
yes, I mixed up cargo_Local and cargo_Remote task, because I want to make use of the installer, which is only available with the local setup. That's the reason, why I am missing such cargo(Re)DeployLocal tasks, which should be available on the ant-side. Nice video, I will definitely have a look at it (but not enjoying 44min youtube in the office ;-)). |
I don't think it's possible. The actions |
…hko#123; build.gradle: Increased version number to 2.2; .gitignore: greetings from egit.
yesterday I got very bored by restarting my Application Server (WildFly) every time when I assemble my EAR and using
cargoStartLocal
/cargoRunLocal
, because WildFly is able to redeploy it on runtime.Primary Issue:
So what I am missing, is a task
cargoRedeployLocal
on a running instance. For convenience I would also suggest a task cargoDeployLocal, which dependsOncargoStartLocal
, if not yet started. So this local tasks are my primary issue.Workaround 1 (without success):
The suggestion in #102 of using cargo*Local for start/stop and redeploy with cargoRedeployRemote did not work for me. Perhaps we could make this work. Here is my config for cargo:
With gradle cargoRedeployRemote --stacktrace this results in:
In my standalone.xml this port 9990 is defined here:
In the WildFly Console (the browser-GUI) you can also check under Configuration-->Socket Binding that "management-http" is an available socket. So, perhaps I have to define another port instead of "management-http" or something. Any help would be appreciated.
Workaround 2:
My current workaround is a gradle copy task:
On file base you can see that WildFly will recognize the new *.ear and start deploying (creating files "myApplication.ear.isdeploying" and "myApplication.ear.deployed").
But IMHO this should be part of the gradle-cargo-plugin, because the locations (from, into) are already known by the plugin.
The text was updated successfully, but these errors were encountered: