forked from danopia/ruby-on-sails
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a gitignore and a simple Rakefile
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rails/db/*.sqlite3 | ||
rails/log |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
require 'rake' | ||
|
||
task :default => ['provider:start'] | ||
|
||
desc 'Start the provider as a XMPP component cluster' | ||
task 'provider:start' do | ||
ruby 'xmpp_component.rb' | ||
end | ||
|
||
desc 'Start a thin instance, in the background' | ||
task 'thin:start' do | ||
sh 'thin start -dR rack.ru' | ||
end | ||
|
||
desc 'Start a thin instance, in the foreground' | ||
task 'thin:fg' do | ||
sh 'thin start -R rack.ru' | ||
end | ||
|
||
desc 'Stop an instance of thin that was started in the background' | ||
task 'thin:stop' do | ||
sh 'thin stop' | ||
end |