Showing posts with label command. Show all posts
Showing posts with label command. Show all posts
Friday, July 21, 2017
Deleting a remote branch using command line Git
Deleting a remote branch using command line Git
If you are familiar with GitHub UI after browsing branches tab you can simply delete a branch(If you have relevant permissions).

Lets see how we do the same using command line.
git push <REMOTE_NAME> :<BRANCH_NAME>Note the space between remote name and the colon. By following this syntax you are asking git to push nothing hence git push will delete the branch in remote repository.
Eg:-
udara@udara-home:~/workspace/h2-social-adaptor$ git push origin :v2
To git@github.com:udarakr/h2-social-adaptor.git
- [deleted] v2
Monday, April 24, 2017
Deploying applications or libraries to WebLogic Server using command line
Deploying applications or libraries to WebLogic Server using command line
Here is how you can automate deployment for WebLogic server using command line.
First source the env settings from the server:
$ source $ML_HOME/server/bin/setWLSEnv.sh
Deploy Library:
$ java weblogic.Deployer -nostage -deploy -library
-adminurl localhost:7001
-username weblogic -password my_secret
-targets myserver
my_shared_lib.war
Deploy Application:
$ java weblogic.Deployer -nostage -deploy
-adminurl localhost:7001
-username weblogic -password my_secret
-targets myserver
-name myapp.war myapp.war
For development, you likely want to use the "-nostage" meaning to deploy the app or library directly from the file system. This means any changes to that file location and a reload from WLS will take effect immediately.
For undeploy the command line options are same for library or app but with matching name.
$ java weblogic.Deployer -undeploy
-adminurl localhost:7001
-username weblogic -password my_secret
-targets myserver
-name myapp_or_lib.war
Subscribe to:
Posts (Atom)