GithubHelp home page GithubHelp logo

cdbokang's Introduction

== Rails on Web 
  Rails on Web is rails integration for build a company site.
  Use Rails on Web, you just need a blueprint.

=== How To:
  1. download srouce
  2. bundle install
  3. modify config/site_map.yml
  4. rake 
    db:migrate
    rails_on_web:init_all_data
    rails_on_web:generate_all_page
  5. rails server

=== Deployed on Heroku
>heroku create
>heroku login
>git push heroku master
  !告知无权限
  在heroku网站上修改该app, 添加email: [email protected]
 > add 'pg' gem on Gemfile
 > bundle install
 > git commit . -m "add pg gem"
 > git push heroku master
 > heroku run rake db:migrate
 > heroku db:push
 > heroku run rake assets:precompile
   !Error: Permission denied - /app/public/assets
   解决办法: 因为heroku不支持写操作,所以需要在本地编译好以后将文件上传到heroku
   注意:修改config/environments/production.rb
      config.assets.compile = true
    在.gitignore中去掉pubic/assets
    
>重命名heroku app
1. 在heroku网站上修改该app名称
2. 在本地该项目下运行:
    $ git remote rm heroku
    $ git remote add heroku [email protected]:newname.git
   
C:\Sites\cdbokang>heroku create
Creating sharp-robot-4853... done, stack is bamboo-mri-1.9.2
http://sharp-robot-4853.heroku.com/ | [email protected]:sharp-robot-4853.git
Git remote heroku added

cdbokang's People

Contributors

krongk avatar

Watchers

James Cloos 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.