Sha256: c2ed3c863fabe50567a937b3ae01dbc4324b6da857b02a0efe14a8ab369c84f1

Contents?: true

Size: 949 Bytes

Versions: 12

Compression:

Stored size: 949 Bytes

Contents

#!/usr/bin/env ruby
#
# This script is used to start OCC

#[ "$RAILS_ENV"  ] || export RAILS_ENV="production"
occ_home = ENV['OATS_OCC_HOME']
unless occ_home
  pwd = Dir.pwd
  occ_home = pwd if File.basename(pwd) == 'occ'
end
occ_home = ENV['HOME'] + '/occ' unless occ_home
occ_home = ENV['HOME'] + '/NetBeansProjects/occ' unless File.directory?(occ_home)

raise "Must define OCC_HOME or be in occ directory to run this command." unless occ_home

Dir.chdir(occ_home)
exec 'ruby script/rails server mongrel' # -p 4000

# By pass the following unless using distributed agents
#  if [ "$OS" != "Windows_NT" ]; then
#    if  [ -z "$SSH_AGENT_PID" ] || ! ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null ; then
#      echo "Should start_agent for SSH first"
#      # exit 1
#      fi
#      ssh-add -l ||  echo "*** WARNING *** Please add your ssh keys ssh-add"
#      fi


#mongrel_rails start -e production -p 3000 --log log\production.log

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
oats_agent-0.0.3 bin/occ
oats_agent-0.0.2 bin/occ
oats-0.1.0 bin/occ
oats-0.0.9 bin/occ
oats-0.0.8 bin/occ
oats-0.0.7 bin/occ
oats-0.0.6 bin/occ
oats-0.0.5 bin/occ
oats-0.0.4 bin/occ
oats-0.0.3 bin/occ
oats-0.0.2 bin/occ
oats-0.0.1 bin/occ