All command line examples in this User Guide must be done from the command line of the VPS while logged in via SSH, as the root user. See the SSH User Guide for more information if necessary. |
[root@eapps-example ~]# cd /opt/grails [root@eapps-example grails]# svn checkout http://grails-petstore.googlecode.com/svn/trunk/ |
There will be an error when trying to run the application. This is due to the version of Grails that is installed being newer that the version of Grails being expected by the application. The application has to be updated from the command line.You may need to do this every time you run one of the Sample Applications. |
[root@eapps-example grails]# cd trunk [root@eapps-example trunk]# grails run-app Welcome to Grails 1.2.1 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /opt/grails Base Directory: /opt/grails/trunk Resolving dependencies... Dependencies resolved in 2761ms. Running script /opt/grails/scripts/RunApp.groovy Environment set to development Application expects grails version [1.2.0], but GRAILS_HOME is version [1.2.1] - use the correct Grails version or run 'grails upgrade' if this Grails version is newer than the version your application expects. |
[root@eapps-example trunk]# grails upgrade |
[root@eapps-example trunk]# grails run-app |
Server running. Browse to http://localhost:8080/grails-petstore |
Not all ports are open on your VPS due to our network security policy. The port shown in the example, port 8090, will work. Other ports may not work. For a list of which ports are open, send a request for the port list from the Authorized e-mail address for your Subscription to eApps Support. |
[root@eapps-example trunk]# grails -Dserver.port=8090 run-app |
Server running. Browse to http://localhost:8090/grails-petstore |