This file contains hidden or 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
| http { | |
| proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m; | |
| proxy_temp_path /var/tmp; | |
| include mime.types; | |
| default_type application/octet-stream; | |
| sendfile on; | |
| keepalive_timeout 65; | |
| gzip on; | |
| gzip_comp_level 6; |
This file contains hidden or 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
| path = "C:/Documents and Settings/Administrator/mypg/public" | |
| def traverse_dir(file_path) | |
| if File.directory? file_path | |
| Dir.foreach(file_path) do |file| | |
| if file!="." and file!=".." | |
| traverse_dir(file_path+"/"+file) | |
| end | |
| end |
This file contains hidden or 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
| path = "C:/Documents and Settings/Administrator/mypg/public" | |
| def traverse_dir(file_path) | |
| if File.directory? file_path | |
| Dir.foreach(file_path) do |file| | |
| if file!="." and file!=".." | |
| traverse_dir(file_path+"/"+file){|x| yield x} | |
| end | |
| end |
This file contains hidden or 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
| class App | |
| constructor: (@body) -> | |
| # site global setup | |
| start: -> | |
| controllerName = @body.data('js_controller') | |
| Controller = App[controllerName] | |
| if Controller | |
| @main = new Controller |
This file contains hidden or 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
| #!/bin/bash | |
| #------------------------------------------------------------------------------ | |
| # SETTINGS | |
| #------------------------------------------------------------------------------ | |
| MYSQL_ROOT_PASSWORD=password | |
| MYSQL_GITORIOUS_PASSWORD=password | |
| GITORIOUS_HOST=gitorious | |
| SYSADMIN=sysadmin |
This file contains hidden or 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
| web: unicorn -c config/unicorn.rb -E production |
This file contains hidden or 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
| # source 'https://ruby.taobao.org' | |
| source 'http://ruby.taobao.org' | |
| gem 'rails', '3.2.8' | |
| # in production environments by default. | |
| group :assets do | |
| gem 'sass-rails', '~> 3.2.3' | |
| gem 'coffee-rails', '~> 3.2.1' | |
| gem 'uglifier', '>= 1.0.3' | |
| end |