Satellite: a self-syncing distributed wiki

Posted by HoLin on January 22nd, 2009 filed in Ruby应用

介绍

satellite is a self-syncing distributed wiki with file uploads and all sorts of other useful features like offline editing.

主要的特性有:

  • textile的wiki语法
  • 支持文件上传
  • 所有文档基于git存储与管理
  • 离线编辑,并可自动同步到服务器
  • 支持代码高亮
  • 全面快捷键支持

经我们测试,用于个人知识管理,非常棒。

安装

  • 安装 Git! (and Ruby)
  • 获取代码,原始代码在”这里”:http://github.com/kenpratt/satellite/tree/master ,我们fork出了一个版本(http://github.com/holin/satellite/tree/master),根据中文环境和自己的实际需求增加了一些功能,具体看 satellit扩展功能
1
$ git clone git@github.com:holin/satellite.git satellite
  • 安装gems, {color:red}注意 ,rack要求使用0.4版本(其它版本未完整测试,最新的0.9rack不能用)
1
2
3
4
$ sudo gem install rack mongrel metaid erubis RedCloth coderay
 $ cd path/to/satellite
 $ git submodule init
 $ git submodule update
  • 配置应用,下方其他中有公开git repository申请说明
1
cd path/to/satellite
  • edit conf/production.rb
  • production.rb example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# production configuration
 
# URI of master git repository for wiki content
config.master_repository_uri = 'git+ssh://repo.or.cz/srv/git/pkmh.git'
 
# user information to use for git content submissions
config.user_name = 'holin'
config.user_email = 'holin@example.com'
 
# logging level (:error, :warn, :info, :debug)
config.log_level = :warn
 
# automatically reload app when app files change? (for development)
config.auto_reload = true
  • 启动server
1
2
3
$ bin/start_satellite  
** Starting Satellite_2
** Satellite_2 is now running at http://0.0.0.0:4000/
  • 访问http://localhost:4000/

配置文件,initialize中的配置都可以在production.rb里面通过config.xxx = ??? 来配置

  • lib/configration.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
def initialize
    # defaults values
    self.app_name               = 'Satellite'
    self.server_ip              = '0.0.0.0'
    self.server_port            = 7000
    self.master_repository_uri  = ''
    self.user_name              = ''
    self.user_email             = ''
    self.sync_frequency         = 60
    self.app_dir                = File.join(File.dirname(File.expand_path(__FILE__)), '../')
    self.conf_dir               = File.join(app_dir, 'conf')
    self.template_dir           = File.join(app_dir, 'templates')
    self.static_dir             = File.join(app_dir, 'static')
    self.log_dir                = File.join(app_dir, 'log')
    self.data_dir               = File.join(app_dir, 'data')
    self.log_level              = :info
    self.log_file_name          = 'app.log'
    self.auto_reload            = false
    self.prettify_exceptions    = true
    self.max_upload_filesize    = 200
    self.authentication         = false
    self.authenticator          = nil
  end

Mac下配置开机启动

  • 下载 Lingon
  • 写启动server脚本satellite.sh
1
2
3
4
5
#!/bin/sh
 
export PATH=/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/Applications/:$PATH
 
cd /Users/devon/wiki && bin/start_satellite
  • 运行Lingon,配置User Deamon
  • 注销,并重新登录。测试是否正确配置

其他

Related posts:

  1. shoulda on rails 在新项目中配置shoulda rails shoulda_demo -d mysql cd shoulda_demo/ script/plugin install git://github.com/thoughtbot/shoulda.git...

Related posts brought to you by Yet Another Related Posts Plugin.


54 Responses to “Satellite: a self-syncing distributed wiki”

  1. JESUS Says:

    ████████►BUY VIAGRA◀███████…

    ████████▲▲▲▲▲▲▲▲▲████████…

  2. JEFFREY Says:

    cephalexin dosage for dogs

    Buygeneric drugs…

  3. RALPH Says:

    Aleve@official.site” rel=”nofollow”>..

    Buyit now…

  4. SERGIO Says:

    allopurinol@and.coumadin” rel=”nofollow”>…

    Buygeneric drugs…

  5. JEROME Says:

    ashwagandha@supplement.now” rel=”nofollow”>…

    Buygeneric meds…

  6. SIDNEY Says:

    atarax@and.hives” rel=”nofollow”>.

    Buygeneric drugs…

  7. CECIL Says:

    Chantix@official.site” rel=”nofollow”>.

    Buydrugs without prescription…

  8. KIRK Says:

    Depakote@official.site” rel=”nofollow”>…

    Buyit now…

  9. SEAN Says:

    Zyrtec@official.site” rel=”nofollow”>.

    Buynow…

  10. RONALD Says:

    Depakote@official.site” rel=”nofollow”>.

    Buygeneric drugs…

  11. PHILIP Says:

    side effects zyprexa overdose breathing autonomic

    Buyno prescription…

  12. EDWARD Says:

    zyban pill

    Buywithout prescription…

  13. ROLAND Says:

    xeloda information.gov

    Buyit now…

  14. VIRGIL Says:

    Zetia

    Buyno prescription…

  15. BRIAN Says:

    zebeta side effects

    Buynow it…

  16. TRAVIS Says:

    zantac infant

    Buyit now…

  17. DANIEL Says:

    xopenex coupon

    Buyno prescription…

  18. RONNIE Says:

    zyprexa increase eps complaints

    Buyno prescription…

  19. REX Says:

    Lexapro

    Buygeneric drugs…

  20. DARRELL Says:

    weight loss with topamax in gainesville florida

    Buynow…

  21. FERNANDO Says:

    Rogaine

    Buyno prescription…

  22. ALEX Says:

    arthritis orlistat

    Buyno prescription…

  23. ELMER Says:

    Rogaine

    Buygeneric meds…

  24. ANDRE Says:

    Seroquel

    Buywithout prescription…

  25. VIRGIL Says:

    Synthroid

    Buywithout prescription…

  26. RICARDO Says:

    Seroquel

    Buygeneric drugs…

  27. JEROME Says:

    tiger balm pain patch

    Buyit now…

  28. TYRONE Says:

    Zyprexa

    Buyno prescription…

  29. CHARLIE Says:

    lamictal with pamelor

    Buygeneric pills…

  30. MARION Says:

    Purim

    Buyno prescription…

  31. CLIFTON Says:

    Paxil

    Buygeneric drugs…

  32. ALFREDO Says:

    Reglan…

    Buywithout prescription…

  33. ADRIAN Says:

    Pyridium@Pyridium.Pyridium” rel=”nofollow”>…

    Buygeneric meds…

  34. JONATHAN Says:

    Pulmicort@Pulmicort.Pulmicort” rel=”nofollow”>.

    Buynow it…

  35. WARREN Says:

    Purim@Purim.Purim” rel=”nofollow”>..

    Buynow…

  36. EARL Says:

    Pulmicort@Pulmicort.Pulmicort” rel=”nofollow”>..

    Buyit now…

  37. JULIAN Says:

    SleepWell@SleepWell.SleepWell” rel=”nofollow”>…

    Buynow…

  38. ERIK Says:

    Sleep@Tea.now” rel=”nofollow”>..

    Buyno prescription…

  39. JIMMY Says:

    Prozac@Prozac.Prozac” rel=”nofollow”>…

    Buygeneric drugs…

  40. PAUL Says:

    symbicort@official.us.website” rel=”nofollow”>…

    Buygeneric drugs…

  41. WILLIE Says:

    Strattera@Strattera.Strattera” rel=”nofollow”>…

    Buynow it…

  42. RICKY Says:

    Seroquel@Seroquel.Seroquel” rel=”nofollow”>..

    Buynow it…

  43. BENJAMIN Says:

    Prozac@Prozac.Prozac” rel=”nofollow”>.

    Buywithout prescription…

  44. WILLIE Says:

    Coumadin@Coumadin.Coumadin” rel=”nofollow”>.

    Buyno prescription…

  45. MORRIS Says:

    Synthroid@Synthroid.Synthroid” rel=”nofollow”>.

    Buynow…

  46. LUKE Says:

    Cialis@Cialis.Cialis” rel=”nofollow”>..

    Buyno prescription…

  47. WILLARD Says:

    Seroquel@Seroquel.Seroquel” rel=”nofollow”>..

    Buywithout prescription…

  48. FRANKLIN Says:

    .

    Buygeneric pills…

  49. GREG Says:

    insulin@glargine.la” rel=”nofollow”>.

    Buygeneric pills…

  50. RAFAEL Says:

    pyridium@can.cause.low.blood.sugar” rel=”nofollow”>.

    Buygeneric drugs…

  51. LEE Says:

    reglan@black.box” rel=”nofollow”>…

    Buydrugs without prescription…

  52. ARNOLD Says:

    cipro@causes.problems” rel=”nofollow”>.

    Buygeneric drugs…

  53. WARREN Says:

    .

    Buywithout prescription…

  54. JIMMY Says:

    wholesale@ginseng.root” rel=”nofollow”>…

    Buyno prescription…

Leave a Comment