Wednesday, February 6, 2013

Unix, GIT and Maven Commands

Unix:

ps -ef | grep "liferay"
kill -9 18490
find . -name "liferay"
chmod -R a+rwx
vim .bashrc
CD to the WAR directory on your local machine, something like
~/liferay-6-ce-ga2/dist
LS to look at the files
scp SomePortlet.war 444.33.22.11:
In a new terminal tab
sudo cp SomePortlet.war /liferay/deploy
In a new terminal tab
cd /liferay/tomcat.../logs
tail -f catalina.out

GIT:

git status
git stash ( gets rid of adds/untracked files before you commit)
git commit -am "Comment goes here"
git checkout master
git pull origin master
git checkout develop
git push origin develop
git branch
git clean -f -d ( removes untracked files and directories from working copy )

git fetch
git remote prune origin


Maven

/usr/lib/mvn clean install  (from projects pom.xml directory)

No comments:

Post a Comment