Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.
/ jruby-deploy Public archive

Deployment of jRuby-based projects to servlet environments

License

Notifications You must be signed in to change notification settings

ajokela/jruby-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple rake (and configuration file) for deploying a jruby project to a tomcat (or other servlet) server over ssh/scp

=========================================

(There is an assumption that you have public/private keys configured between the machine you are deploying from and the machine you are deploying to.)

  • Put build.rake into lib/tasks (for Rails)
  • Put build.yml into config (again, for Rails)

Edit config/build.yml to fit your environment.

production:
	host: awesome-host.biz
	user: root
	tmp: /tmp
	dest: /var/lib/tomcat7/webapps/ROOT.war 
	cmd: /etc/init.d/tomcat7
	use_cmd: true

The configuration file is broken into Rails environment-based chunks. The configured options are as follows:

  • host: the destination host running tomcat
  • user: the user to connect to the host with
  • tmp: location to upload the project war file to
  • dest: final home for the war file
  • use_cmd: true or false - determines whether to run the start/stop command (cmd)
  • cmd: start/stop command (with path) to tomcat

The rake/task file will give you the following:

#> rake build:war
#> rake build:deploy

Final note, in config/warble.rb, you have to have ' config.jar_name = "..." ' commented out.

  # config.jar_name = "project_awesome"

About

Deployment of jRuby-based projects to servlet environments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages