public
Description: Merb More: The Full Stack. Take what you need; leave what you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-more.git
Search Repo:
udpated documentation to reflect merb-freezer latest changes
mattetti (author)
Thu Apr 17 23:01:12 -0700 2008
commit  688a4e61f28328700129386f6e9bcef80a0660a6
tree    8492d4612c872e8b61fb210f44aab8a9fe671ab6
parent  29e2eeebeb14a42cfb2cb7a8f25fa03b33e14d1a
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
...
1
2
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
0
@@ -1,42 +1,5 @@
0
 merb-freezer
0
 ============
0
 
0
-This plugin lets you freeze Merb and run it using the frozen gems.
0
-
0
-==Why would you want to freeze Merb?
0
-
0
-* You might have multiple applications on the same server/slice/cluster. Different applications might require different versions of Merb.
0
-
0
-* You might work with a team of developers and want everyone to be using the same Merb version.
0
-
0
-* You are using Merb Edge, you want to make sure the production server and your co workers are developing/testing against the same revision.
0
-
0
-
0
-==What are your options?
0
-
0
-* You just want to lock your app to a specific version. For instance version merb-core 0.9.2
0
-
0
-* You only want to use frozen gems located in /framework or /gems
0
-
0
-
0
-== How to lock your app?
0
-
0
-TODO
0
-
0
-== How to use frozen gems
0
-
0
-Instead of starting merb by typing "merb" in your console, type "frozen-merb" and that's it :)
0
-If frozen-merb can't find frozen gems in /framework or /gems then Merb will start normally using the system's gems.
0
-
0
-== How to freeze your gems?
0
-
0
-In your init.rb file, require this plugin.
0
-
0
- require 'merb-freezer'
0
-
0
-You now get a new set of rake tasks:
0
-
0
-rake freeze:core # Freeze core from git://github.com/wycats/merb...
0
-rake freeze:more # Freeze more from git://github.com/wycats/merb...
0
-rake freeze:plugins # Freeze plugins from git://github.com/wycats/m...
0
+see README.markdown
...
32
33
34
 
35
36
37
...
44
45
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
32
33
34
35
36
37
38
...
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
0
@@ -32,6 +32,7 @@
0
 Instead of starting merb by typing "merb" in your console, type "frozen-merb" and that's it :)
0
 If frozen-merb can't find frozen gems in /framework or /gems then Merb will start normally using the system's gems.
0
 
0
+
0
 How to freeze your gems?
0
 ------------------------
0
 
0
@@ -44,4 +45,23 @@
0
     rake freeze:core # Freeze core from git://github.com/wycats/merb...
0
     rake freeze:more # Freeze more from git://github.com/wycats/merb...
0
     rake freeze:plugins # Freeze plugins from git://github.com/wycats/m...
0
+
0
+You can freeze components using 2 modes, Git Submodules or rubygems:
0
+
0
+ rake freeze:core MODE=rubygems
0
+or
0
+ rake freeze:core MODE=submodules (default mode)
0
+
0
+Wait, that's not it, you can also update your frozen gems using UPDATE=true:
0
+
0
+
0
+ rake freeze:core UPDATE=true
0
+
0
+What about your other gems? Same thing, you can do:
0
+
0
+ rake freeze:gem GEM=merbful_authentication
0
+
0
+or
0
+
0
+ rake freeze:gem GEM=git://github.com/ivey/merb-for-rails.git

Comments

    No one has commented yet.