Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jedi4ever/mds-sinatra
sinatra demo
https://github.com/jedi4ever/mds-sinatra
Last synced: about 1 month ago
JSON representation
sinatra demo
- Host: GitHub
- URL: https://github.com/jedi4ever/mds-sinatra
- Owner: jedi4ever
- Created: 2011-01-24T16:45:49.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-01-26T11:54:02.000Z (almost 14 years ago)
- Last Synced: 2023-04-10T14:22:17.686Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.INSTALL
Awesome Lists containing this project
README
Install ruby 1.9
-> use rvm
#Install redis
$ brew install redis##################################
$ . mds-sinatra.rvm
$ gem install bundler##################################
$ cd src
$ bundle update##################################
# Unicorn configuration
$ cat config.unicorn# Rack configuration
$ cat config.ru# Start the application
$ unicorn -c config.unicorn# Or use the shell script
thin start -s3 --socket /tmp/thin.sock
thin stop -s3### NGINX
# http://library.linode.com/web-servers/nginx/configuration/front-end-proxy-and-software-load-balancing#basic_http_clusteringlocation / {
proxy_pass http://backend;
}upstream backend {
server unix:/tmp/thin.0.sock;
server unix:/tmp/thin.1.sock;
server unix:/tmp/thin.2.sock;
server unix:/tmp/thin.3.sock;
server unix:/tmp/thin.4.sock;
}thin start -t 1 -s 8 -S /tmp/thin.sock
thin stop -t 1 -s 8 -S /tmp/thin.sock/usr/local/sbin/nginx -c `pwd`/nginx-thin.conf -s stop
/usr/local/sbin/nginx -c `pwd`/nginx-thin.conf -s reload