GithubHelp home page GithubHelp logo

media's Introduction

环境安装:

bundle install
修改 config/database.yml,并将 cms 项目的数据库结构导入数据库中
将 config/local_env.yml.example 拷贝到 config/local_env.yml

部署须知:

后台应用部署到: web1.winwemedia.com 和 web2.winwemedia.com 服务器的 /opt/apps/winwemedia/current 目录;
  部署命令: `cap production deploy`

其它环境的部署请参照 config/deploy.rb 文件;

注意: 如果部署到staging环境或生产环境, 并且 assets 文件有变动, 请先执行 cap {{stage}} precompile

sidekiq部署:

应用程序部署到 faye.service.winwemedia.com, 以root运行 `/etc/init.d/sidekiq restart`

faye部署:

应用程序部署到 faye.service.winwemedia.com, 进入 /opt/apps/faye 目录,运行 `rackup faye.ru -E production -p 9393 -D`

短信报警:staging.winwemedia.com这台服务器每天10点07分会执行/opt/apps/scripts/sms.rb文件并检测系统短信是否小于2万条,如果是则会发送报警短信。

注意事项:当生产服务器的IP地址发生变更时,需要在微信开放平台 open.weixin.qq.com 修改白名单IP地址列表:203.195.131.131;203.195.143.22;

media's People

Contributors

100cm avatar houdl avatar zgt0109 avatar zhkl avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.