我的公共文件夹(包括我的javascripts和css)不会推送到我的heroku存储库,即使我的其余代码存在。
我无法弄清楚原因。下面是我的.gitignore
和我的`gemfile。任何想法??
.GITIGNORE
.bundle
db/*.sqlite3
log/*.log
tmp/**/*
db/schema.rb
GEMFILE:
source 'http://rubygems.org'
gem 'rails', '3.0.3'
gem "haml"
gem 'rails3-jquery-autocomplete'
gem 'nifty-generators'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3-ruby', '1.3.2', :require => 'sqlite3'
gem 'devise', '1.1.rc0'
gem 'activemerchant', '1.9.3'
gem 'annotate-models', '1.0.4'
gem 'log4r', '1.1.9'
gem 'paperclip'
gem 'aws-s3'
gem 'chronic'
gem 'oauth2', '0.1.1'
gem 'shove'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'
# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
# group :development, :test do
# gem 'webrat'
group :development do
gem 'ruby-debug19'
gem 'rspec-rails'
gem 'factory_girl_rails'
end
group :test do
gem 'ruby-debug19'
gem 'rspec'
gem 'webrat'
gem 'factory_girl_rails'
end
答案 0 :(得分:0)
尝试删除并重新创建公用文件夹,如果检测到,则检查git status
。看起来该文件夹未跟踪。如果您已经定义了.gitignore_global
文件,是否已检查过它?
如果失败,请创建另一个名为`public2的文件夹,添加并提交它。然后将其重命名为public,并查看git是否选择了它。