Coder Social home page Coder Social logo

eric-guo / bootstrap-rails-startup-site Goto Github PK

View Code? Open in Web Editor NEW
34.0 7.0 7.0 702 KB

Rails 3.2.17 or 4.0.3 enterprise startup site based on Bootstrap 2.3 or 3

Home Page: http://sdss.cloudfoundry.com/

Ruby 46.99% CoffeeScript 0.27% CSS 32.56% HTML 17.84% JavaScript 2.35%

bootstrap-rails-startup-site's Introduction

Welcome to use Bootstrap Rails Startup Site

I created this startup site focus on the general enterprise internal website, which frontend code seldom to change, but logic/model changed frequently. I’m using Windows when develop rails, but I found most of the gems about Bootstrap theme need therubyracer Gems, so can not used if you develop Rails under Windows. So here is my solution :-)

The job which already do for you

  1. using Sass based Bootstrap 3 template

  2. using ruby.taobao.org in Gemfile

  3. add win32console for more beautiful out in Windows

  4. config.assets.debug = false in config/environments/development.rb to focus function at first

  5. add developer document reference

  6. default Sublime Text project

The job after you clone this site

  1. bundle install

  2. rake assets:precompile (this will give you very clean log out windows, but it’s optional, if you meet error, probably, you put the site to C driver instead of D or others)

  3. rails server

bootstrap-rails-startup-site's People

Contributors

eric-guo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrap-rails-startup-site's Issues

数据库能改成mysql么?

database我改成mysql2,migrate成功了,但是assets没编译成,报错如下:
D:\RailsInstaller\sites\bootstrap-rails-startup-site>rake assets:precompile --tr
ace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
d:/RailsInstaller/Ruby1.9.3/bin/ruby.exe d:/RailsInstaller/Ruby1.9.3/bin/rake as
sets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
rake aborted!
database configuration does not specify adapter
d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-3.2.14/lib/act
ive_record/connection_adapters/abstract/connection_specification.rb:47:in `resol
ve_hash_connection'

rake assets:precompile

C:\bootstrap-rails-startup-site-master>rake assets:precompile
C:/Users/Administrator/.pik/rubies/Ruby-193-p429/bin/ruby.exe C:/Users/Administr
ator/.pik/rubies/Ruby-193-p429/bin/rake assets:precompile:all RAILS_ENV=producti
on RAILS_GROUPS=assets
rake aborted!
Invalid CSS after "@black:": expected pseudoclass or pseudoelement, was "
..."
(in C:/bootstrap-rails-startup-site-master/app/assets/stylesheets/app_bootstra
p.css.scss)
C:/bootstrap-rails-startup-site-master/app/assets/stylesheets/app_bootstrap.css.
scss:5
Tasks: TOP => assets:precompile:primary
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [C:/Users/Administrator/.pik/rubies/Ruby-19...]

Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

error

D:\apps\bootstrap>rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
C:/Users/Administrator/.pik/rubies/Ruby-193-p429/bin/ruby.exe C:/Users/Administr
ator/.pik/rubies/Ruby-193-p429/bin/rake assets:precompile:all RAILS_ENV=producti
on RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
TypeError: 对象不支持此属性或方法

help

能不能加入DataTables?

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.