ruby-slippers 0.1.40 → 0.1.43
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/README.md +40 -28
- data/VERSION +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
+
README
|
2
|
+
======
|
3
|
+
|
1
4
|
RubySlippers, the smartest blogging engine in all of Oz!
|
2
|
-
|
5
|
+
--------------------------------------------------------
|
3
6
|
|
4
7
|
[website](http://ruby-slippers.heroku.com)
|
5
8
|
|
@@ -54,19 +57,22 @@ RubySlippers comes with a basic default theme for you to mangle. I hope to relea
|
|
54
57
|
Deployment
|
55
58
|
==========
|
56
59
|
|
57
|
-
####
|
60
|
+
#### On heroku
|
61
|
+
|
62
|
+
$ git add .
|
63
|
+
$ git commit -m 'updated blog'
|
64
|
+
$ git push heroku
|
65
|
+
|
66
|
+
#### On your own server or locally
|
67
|
+
|
68
|
+
Once you have created the remote git repo, and pushed your changes to it, you can run RubySlippers with any Rack compliant web server, such as **thin**, **mongrel** or **unicorn**.
|
58
69
|
|
59
|
-
|
70
|
+
I like to use shotgun as it reloads while I work
|
60
71
|
|
61
72
|
$ cd myblog
|
62
73
|
$ bundle
|
63
74
|
$ shotgun
|
64
|
-
|
65
|
-
|
66
|
-
#### on your own server
|
67
|
-
|
68
|
-
Once you have created the remote git repo, and pushed your changes to it, you can run RubySlippers with any Rack compliant web server, such as **thin**, **mongrel** or **unicorn**.
|
69
|
-
|
75
|
+
|
70
76
|
With thin, you would do something like:
|
71
77
|
|
72
78
|
$ thin start -R config.ru
|
@@ -81,25 +87,31 @@ With unicorn, you can just do:
|
|
81
87
|
You can configure ruby-slippers, by modifying the _config.ru_ file. For example, if you want to set the blog author to 'John Galt',
|
82
88
|
you could add `set :author, 'John Galt'` inside the `RubySlippers::Engine::App.new` block. Here are the defaults, to get you started:
|
83
89
|
|
84
|
-
|
85
|
-
|
86
|
-
set :
|
87
|
-
|
88
|
-
set :
|
89
|
-
set :
|
90
|
-
set :
|
91
|
-
set :
|
92
|
-
set :
|
93
|
-
set :
|
94
|
-
set :
|
95
|
-
|
96
|
-
set :
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
set :
|
101
|
-
|
102
|
-
|
90
|
+
#
|
91
|
+
# Add your settings here
|
92
|
+
# set [:setting], [value]
|
93
|
+
#
|
94
|
+
set :author, "Dreamr" # blog author
|
95
|
+
set :title, "RubySlippers, the smartest blog engine in all of Oz!" # site title
|
96
|
+
# set :root, "index" # page to load on /
|
97
|
+
set :date, lambda {|now| now.strftime("%m/%d/%Y") } # date format for articles
|
98
|
+
# set :markdown, :smart # use markdown + smart-mode
|
99
|
+
# set :disqus, false # disqus id, or false
|
100
|
+
set :summary, :max => 300, :delim => /~/ # length of article summary and delimiter
|
101
|
+
# set :ext, 'txt' # file extension for articles
|
102
|
+
# set :cache, 28800 # cache duration, in seconds
|
103
|
+
set :tag_separator, ', ' # tag separator for articles
|
104
|
+
set :date, lambda {|now| now.strftime("%B #{now.day.ordinal} %Y") }
|
105
|
+
# set this to your local port. I use shotgun, so 9393.
|
106
|
+
set :url, "http://localhost:9393" if ENV['RACK_ENV'] == 'development'
|
107
|
+
|
108
|
+
# to use haml, add the gem to your Gemfile and bundle, then uncomment this
|
109
|
+
# and redo your templates using haml and renamed to html.haml
|
110
|
+
# set :to_html, lambda { |path, page, binding|
|
111
|
+
# Haml::Engine.new(File.read("#{path}/#{page}.html.haml"),
|
112
|
+
# :attr_wrapper => '"',
|
113
|
+
# :filename => path ).render(binding)
|
114
|
+
# }
|
103
115
|
|
104
116
|
Thanks
|
105
117
|
------
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.43
|