backlog 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +5 -0
- data/bin/backlog +7 -4
- metadata +1 -1
data/History.txt
CHANGED
data/bin/backlog
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
|
8
8
|
require 'rubygems'
|
9
9
|
require 'fileutils'
|
10
|
+
require 'ftools'
|
10
11
|
require 'yaml'
|
11
12
|
|
12
13
|
APPLICATION = 'backlog'
|
@@ -22,16 +23,18 @@ config = {}
|
|
22
23
|
config = File.open(config_file) {|f| YAML::load(f)} if File.exists? config_file
|
23
24
|
|
24
25
|
LOG_DIR = "#{INSTALL_DIR}/log"
|
26
|
+
PID_FILE = '/var/run/backlog.pid'
|
25
27
|
|
26
28
|
# See how we were called.
|
27
29
|
case ARGV[0]
|
28
30
|
when 'start':
|
29
|
-
|
30
|
-
|
31
|
+
File.makedirs LOG_DIR unless File.exists? LOG_DIR
|
32
|
+
File.makedirs File.dirname(PID_FILE) unless File.exists? File.dirname(PID_FILE)
|
33
|
+
`mongrel_rails start -p #{config['port'] || 3000} -e production -c #{INSTALL_DIR} -d -m #{INSTALL_DIR}/config/mime_types.yaml -P #{PID_FILE} 1>#{LOG_DIR}/stdout.log 2>#{LOG_DIR}/stderr.log`
|
31
34
|
when 'stop':
|
32
|
-
`mongrel_rails stop -c #{INSTALL_DIR}`
|
35
|
+
`mongrel_rails stop -c #{INSTALL_DIR} -P #{PID_FILE}`
|
33
36
|
when 'restart':
|
34
|
-
puts `mongrel_rails restart -c #{INSTALL_DIR}`
|
37
|
+
puts `mongrel_rails restart -c #{INSTALL_DIR} -P #{PID_FILE}`
|
35
38
|
when 'status'
|
36
39
|
puts `ps -ef | grep backlog`
|
37
40
|
when 'setup_linux'
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: backlog
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
6
|
+
version: 0.3.7
|
7
7
|
date: 2007-08-03 00:00:00 +02:00
|
8
8
|
summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
|
9
9
|
require_paths:
|