technomancy-harker 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/README.rdoc +10 -8
- data/lib/harker.rb +2 -2
- metadata +1 -1
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -42,30 +42,32 @@ Once your app is a gem, install it locally with "rake install_gem",
|
|
42
42
|
and you should be able to use the bin wrapper to generate a new
|
43
43
|
instance:
|
44
44
|
|
45
|
-
$ your_app init ~/apps/
|
45
|
+
$ your_app init ~/apps/your_app_3001
|
46
46
|
|
47
47
|
Then edit /var/myapp/database.yml with your database settings. At that
|
48
48
|
point you should be able to bring up your database:
|
49
49
|
|
50
|
-
$ your_app migrate ~/apps/
|
50
|
+
$ your_app migrate ~/apps/your_app_3001
|
51
51
|
|
52
52
|
Test it out by dropping into the console:
|
53
53
|
|
54
|
-
$ your_app console ~/apps/
|
54
|
+
$ your_app console ~/apps/your_app_3001
|
55
55
|
|
56
56
|
Then you can start and stop your application server via Rack:
|
57
57
|
|
58
|
-
$ your_app start ~/apps/
|
59
|
-
$ your_app stop ~/apps/
|
58
|
+
$ your_app start ~/apps/your_app_3001 --daemon --port=3001
|
59
|
+
$ your_app stop ~/apps/your_app_3001
|
60
60
|
|
61
|
-
|
62
|
-
|
61
|
+
The start command takes all the same arguments as script/server. To
|
62
|
+
configure it in a way that doesn't require command-line arguments,
|
63
|
+
create a config.ru file in your instance directory, and Rails will
|
64
|
+
pick that up with Rack.
|
63
65
|
|
64
66
|
If you omit the second argument, it defaults to the current directory.
|
65
67
|
|
66
68
|
For deployment, simply publish your gem to a gem server (public or
|
67
69
|
private), install it on the target server, and launch it via the bin
|
68
|
-
|
70
|
+
wrapper.
|
69
71
|
|
70
72
|
== Requirements
|
71
73
|
|
data/lib/harker.rb
CHANGED
@@ -6,7 +6,7 @@ require 'fileutils'
|
|
6
6
|
# rather than by Harker itself.
|
7
7
|
#
|
8
8
|
module Harker
|
9
|
-
VERSION = '0.5.
|
9
|
+
VERSION = '0.5.1'
|
10
10
|
ACTIONS = %w(start stop restart init migrate console)
|
11
11
|
GEM_ROOT = Gem.loaded_specs[File.basename($0)].full_gem_path rescue '.'
|
12
12
|
|
@@ -17,7 +17,7 @@ module Harker
|
|
17
17
|
action = args.shift
|
18
18
|
|
19
19
|
unless ACTIONS.include?(action)
|
20
|
-
abort "Usage: #{name}
|
20
|
+
abort "Usage: #{name} (#{ACTIONS.join('|')}) [INSTANCE_DIR] [START_ARGS]
|
21
21
|
The start command takes the same arguments as script/server."
|
22
22
|
end
|
23
23
|
|