Skip to main content

Posts

Showing posts from February, 2014

Play! and Angular.js POST request Error!

* I tested with Curl command like this. curl --header "Content-type: application/json" --request POST --data '{"name": "Guillaume"}' http://localhost:8080/api/notifi cation3 => request().body().asJson() can get the json request value * I tried with seveal ways of ajax call in angular.js. $http({ url: ' http://localhost:8080/api/notifi cation3 ', method: " POST ", dataType: "json", data: {"name": "Guillaume"}, headers: {'Content-Type': 'application/json'} }).success(function (data, status, headers, config) { debugger; console.log("good") }).error(function (data, status, headers, config) { debugger; console.log("something wrong") }); * and the request headers are like this. Request URL: http://localhost:8080/api/notifi cation3 Request Method:POST Status Code:200 OK Request Headersv

Jenkins on ubuntu

1. install jenkins wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jenkins java -jar /usr/share/jenkins/jenkins.war --httpPort=8888   (open firewall) http://aaa.com:8888 2. change authentication http://aaa.com:8888 /configureSecurity/ Jenkins’ own user database Matrix-based security 3. install ant wget http://www.apache.org/dist/ant/binaries/apache-ant-1.9.3-bin.tar.gz tar zxf apache-ant-1.9.3-bin.tar.gz 4. vi .bachrc export JAVA_HOME=~~ export ANT_HOME=~~ 5. install plug-ins Github OAuth Plugin GitHub Plugin Git Client Plugin GitHub API Plugin 6. github connection ssh-keygen cd .ssh cat id_rsa.pub copy string and register it on githup's ssh 7. making project new item Build a free-style software project