2016-09-15 2 views
0

내가 고안과 레일을 배우고에서 작업하지 : https://www.sitepoint.com/devise-authentication-in-depth/부트 스트랩이 자습서 다음 로컬 호스트

하는 동안 나는 스타일을위한 부트 스트랩 - 말대꾸를 사용합니다. 응용 프로그램이 Heroku에 앉아있는 곳에서 스타일이로드되는 이상한 문제가 있습니다. 그러나 컴퓨터에서 개발 중일 때 나는 공백의 스타일이없는 양식을 얻습니다. 나는 어딘가에 어떤 설정이나 버전을 변경 (또는 변경하지 않은 것) 한 것처럼 느낀다. 그러나 나는 무엇을 확신 할 수 없다. 왜 Heroku에서 잘 작동하지만 내 컴퓨터에서는 평평하게 떨어지는 지 잘 모르겠습니다.

나는 레일즈 5를 사용하고있다. 아래는 내 Gemfile의 복사본이다. 필요에 따라 추가 파일/정보를 제공 할 것입니다.

source 'https://rubygems.org' 

#ruby version 
ruby "2.3.1" 

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 
gem 'rails', '~> 5.0.0' 
# Use postgresql as the database for Active Record 
gem 'pg', '~> 0.18' 
# Use Puma as the app server 
gem 'puma', '~> 3.0' 
# Use SCSS for stylesheets 
gem 'sass-rails', '~> 5.0' 
# Use Uglifier as compressor for JavaScript assets 
gem 'uglifier', '>= 1.3.0' 
# Use CoffeeScript for .coffee assets and views 
gem 'coffee-rails', '~> 4.2' 
# See https://github.com/rails/execjs#readme for more supported runtimes 
# gem 'therubyracer', platforms: :ruby 

# Use jquery as the JavaScript library 
gem 'jquery-rails' 
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks 
gem 'turbolinks', '~> 5' 
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 
gem 'jbuilder', '~> 2.5' 
# Use Redis adapter to run Action Cable in production 
# gem 'redis', '~> 3.0' 
# Use ActiveModel has_secure_password 
# gem 'bcrypt', '~> 3.1.7' 

# Use Capistrano for deployment 
# gem 'capistrano-rails', group: :development 

# Use Bootstrap for styling 
gem 'bootstrap-sass' 

# Use Devise for authentication 
gem 'devise' 

# Fix issues with Bootstrap dropdown menu, Javascript, and Turbolinks 
gem 'jquery-turbolinks' 

# Perform email sending in background 
#gem 'delayed_job_active_record' 


group :development, :test do 
    # Call 'byebug' anywhere in the code to stop execution and get a debugger console 
    gem 'byebug', platform: :mri 
end 

group :development do 
    # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. 
    gem 'web-console' 
    gem 'listen', '~> 3.0.5' 
    # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 
    gem 'spring' 
    gem 'spring-watcher-listen', '~> 2.0.0' 
end 

group :test do 
    gem 'rails-controller-testing', '0.1.1' 
    gem 'minitest-reporters',  '1.1.9' 
    gem 'guard',     '2.13.0' 
    gem 'guard-minitest',   '2.4.4' 
end 


# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 

답변

0

나는이 문제에 대한 내 자신의 문제를 해결할 수있었습니다. 그리고 그것은 내 끊임없이 늘어나는 벙어리 실수로 이어집니다. 지시 된대로 .scss로 application.css 파일의 이름을 바꾸는 대신 내 무한한 지혜로 새로운 .scss 파일을 만들고 내 .css 파일을 보관했습니다. 부트 스트랩 스타일을 삭제하면 자유롭게 사용할 수 있습니다. 왜 Heroku가 두 파일을 가지고있는 데 문제가 없었는지 모르겠다. 나는 내 바보 같은 실수를 이해할만큼 똑똑하다고 생각한다.

아마 어떤 시점에서 새로운 부트 스트랩 4를 사용해야 할 것이지만, 지금은 내가 사용하고있는 튜토리얼에서 발견 한 스타일을 좋아합니다. 유머러스 한 실수를 계속 지켜봐주십시오.

관련 문제