Created
November 9, 2012 03:30
-
-
Save nise-nabe/4043538 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get instal tomcat7 tomcat7-admin | |
$ sudo vi /var/lib/tomcat7/conf/server.xml | |
72 <Connector port="8080" protocol="HTTP/1.1" | |
$ sudo vi /var/lib/tomcat7/conf/tomcat-users.xml | |
36 <user username="hoge" password="fuga" roles="manager-script"/> | |
$ sudo service tomcat7 restart | |
$ grails create-app niseapp | |
$ cd niseapp | |
$ vim grails-app/conf/Config.groovy | |
93 tomcat.deploy.username="hoge" | |
94 tomcat.deploy.password="fuga" | |
95 tomcat.deploy.url="http://localhost:8080/manager/text" | |
$ grails tomcat deploy | |
$ curl http://localhost:8080/niseapp/ | grep title | sed -e 's/.*<title>\(.*\)<\/title>.*/\1/g' | |
Welcome to Grails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment