miclle-open-source, [Closed] miclle.com 源代码

分享于 

3分钟阅读

GitHub

  繁體 雙語
miclle.com source code.
  • 源代码名称:miclle-open-source
  • 源代码网址:http://www.github.com/miclle/miclle-open-source
  • miclle-open-source源代码文档
  • miclle-open-source源代码下载
  • Git URL:
    git://www.github.com/miclle/miclle-open-source.git
    Git Clone代码到本地:
    git clone http://www.github.com/miclle/miclle-open-source
    Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/miclle/miclle-open-source
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    
    Miclle

    要求

    Rails 4.0.2
    MySQL 5.5
    n。麒麟
    redis 2.8.4

    前端框架

    映射 API

    https://developers.google.com/maps/documentation/

    ##nginx 配置 ################## cdn源 ################## 服务器 { 监听 80 ;server_name public.miclle.com; root/home/user_home/www/miclle/public; }

    
    #################### server ####################
    
    
    upstream miclle_backend {
    
    
     server unix:/tmp/unicorn.miclle.sock fail_timeout=0;
    
    
    }
    
    
    
    server {
    
    
     listen 80;
    
    
     server_name miclle.com www.miclle.com;
    
    
     client_max_body_size 20M;
    
    
     root/home/user_home/www/miclle/public;
    
    
    
     location ~* ^(/assets|/favicon.ico) {
    
    
     access_log off;
    
    
     expires max;
    
    
     }
    
    
    
     location/{
    
    
     proxy_redirect off;
    
    
     proxy_set_header Host $host;
    
    
     proxy_set_header X-Forwarded-Host $host;
    
    
     proxy_set_header X-Forwarded-Server $host;
    
    
     proxy_set_header X-Real-IP $remote_addr;
    
    
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    
    
     proxy_buffering on;
    
    
     proxy_pass http://miclle_backend;
    
    
     }
    
    
    }
    
    
    
    

    ##unicorn # 启动 unicorn_rails -D -c配置/unicorn。rb -E产品

    
    # restart
    
    
    kill -USR2 `cat tmp/pids/unicorn.pid`
    
    
    
    # stop
    
    
    kill -9 `cat tmp/pids/unicorn.pid`
    
    
    
    

    ##Sidekiq 服务 # Sidekiq # 停止捆绑包执行sidekiqctl静音 tmp/pids/sidekiq.pid
    包 exec sidekiqctl停止 tmp/pids/sidekiq.pid

    
    # start
    
    
    # ensure that redis has started up 
    
    
    nohup bundle exec sidekiq -e production -C config/sidekiq.yml -P tmp/pids/sidekiq.pid>> log/sidekiq.log 2>&1 &
    
    
    
    #god start/stop
    
    
    
    

    在MIT许可证下发布的#License 代码。


    COM  cod  Source  源代码  CLOS  Close  
    相关文章