Skip to content

Instantly share code, notes, and snippets.

@ariela
Created May 20, 2011 05:36
Show Gist options
  • Save ariela/982413 to your computer and use it in GitHub Desktop.
Save ariela/982413 to your computer and use it in GitHub Desktop.
AsakusaSatelliteをPassengerで動かしてみる。
$ cd /vaw/www
$ git clone git://github.com/codefirst/AsakusaSatellite.git
$ cd AsakusaSatellite
$ cp config/filter.yml.example config/filter.yml
$ cp config/websocket.yml.example config/websocket.yml
$ cp config/settings.yml.example config/settings.yml
$ vi config/filter.yml
1 - name: auto_link
2 - name: redmine_ticket_link
3 roots:
4 project:
5 - name: twitter_link
6 - name: code_highlight_filter
$ vi config/websocket.yml
1 roots: 0.0.0.0/satellite # <a href="http://codefirst.github.com/AsakusaSatellite/">AsakusaSatellite</a>のPassengerでマッピングするURL
2 websocketPort: 18081
3 httpPort: 18080
4 use_rails_ssl: false
$ bundle install --path vendor/bundle
$ rake groonga:migrate RAILS_ENV=production
$ sudo chown -R apache:apache AsakusaSatellite
$ sudo vi /etc/httpd/conf/httpd.conf
# ServerName_
DocumentRoot /var/www/html
RailsBaseURI /redmine
RailsBaseURI /satellite
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
AllowOverride all
Options -MultiViews
$ ln -s /var/www/AsakusaSatellite/public/ /var/www/html/satellite
$ sudo service httpd restart
$ ruby websocket/server.rb &amp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment