Skip to content

matejonnet/ceylon-openshift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Deprecated, use https://github.com/matejonnet/openshift-cartridge-ceylon



Running Ceylon on OpenShift

Follow this instructions to run Ceylon applications on OpenShift PaaS.

  1. Register for OpenShift

  2. Follow the instructions to install client tools (step one)

  3. Create a domain (step two on the link above)

  4. Create JBoss AS applications:

     rhc app create -t jbossas-7 -a myceylonapp
    
  5. Optionaly you can remove OpenShift sample applications

     cd myceylonapp
     rm -r src/main/webapp/*
    
  6. Use files from this github repo to add Ceylon runtime and required modules to JBoss AS. Avoiding conflicts specify git options to prefer this repo content.

     cd myceylonapp (if you are not here yet)
     git remote add ceylon-openshift https://github.com/matejonnet/ceylon-openshift
     git pull -s recursive -X theirs ceylon-openshift master
    
  7. Push everithing to OpenShift:

     git push origin master
    
  8. See a demo application in a web browser at <your app name>-<your domain name>.rhcloud.com.

  9. Try to modify demo application src/main/ceylon/org/jboss/ceylon/demo/servlet/Run.ceylon.

After code changes do a git commit and push to OpenShift:

    git commit -a -m"My changes to sample."
    git push origin master

Run.ceylon is an entry point for all request to your application, it must implement service method:

    shared void service(HttpServletRequest req, HttpServletResponse resp) 

If you rename entry class or move it to different package, you need to update configuration to point to your class.

Entry point configuration ceylon-main-module and ceylon-main-runnable is located in standalone.xml under .openshift/config

Note! Servlet implmentation is still experimental and can be changed or even removed in the future.

About

Ceylon sample app on OpenShift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published