Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
#+LANGUAGE: en | ||
#+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t | ||
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc | ||
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js | ||
#+EXPORT_SELECT_TAGS: export | ||
#+EXPORT_EXCLUDE_TAGS: noexport | ||
#+LINK_UP: | ||
#+LINK_HOME: | ||
#+XSLT: | ||
|
||
#+STARTUP: oddeven | ||
|
||
* Guard::Soca | ||
Guard::Soca runs soca's push automatically | ||
*** Install | ||
** Install | ||
Please be sure to have [[https://github.com/guard/guard][guard]] installed first | ||
#+BEGIN_SRC sh | ||
gem install guard-soca | ||
#+END_SRC | ||
*** Usage | ||
** Usage | ||
In your Guardfile | ||
#+BEGIN_SRC ruby | ||
guard "soca" do | ||
watch(".+\.js$") | ||
end | ||
#+END_SRC | ||
Now guard-soca will automatically push and compact CouchDB when needed | ||
*** Options | ||
** Options | ||
There are three options: | ||
***** appdir | ||
- *appdir* | ||
Where the application lives. Defaults to current directory | ||
***** env | ||
- *env* | ||
Which configuration should soca push to | ||
***** config_file | ||
- *config_file* | ||
The location of the config.js | ||
#+BEGIN_SRC ruby | ||
guard "soca", :appdir => "app", :env => "test" do | ||
watch(".+\.js$") | ||
end | ||
#+END_SRC | ||
|
||
|