▼エラー

Sprockets::Rails::Helper::AssetNotFound in Top#index

Showing /Users/user/Documents/akito's_portfolio/app/views/top/index.html.haml where line #322 raised:

The asset "app/assets/images/pic/profile/2801700_m.jpg" is not present in the asset pipeline.

■"app/assets/images/pic/works/thumb/idea-share.png "がアセットパイプラインに存在しません。

相対パスそのままコピーしたら出ました。

∟pic/works/thumb/idea-share.png  に書き換えればOK

 

 

herokuデプロイハマり中

 

gem

開発テスト環境ではSQLite3を使う
group :development, :test do
gem 'sqlite3'
end

# 本番環境ではPostgresqlを使う
group :production do
gem 'pg', '0.20.0'
end

bundle install --without production

git add -A   

git commit -m "[Update] Gemfile修正"

git push heroku master     

remote:  !

remote:  !     Failed to install gems via Bundler.

remote:  !     Detected sqlite3 gem which is not supported on Heroku:

remote:  !     https://devcenter.heroku.com/articles/sqlite3

remote:  !

。。。

試しに

gem uninstall sqlite3

消えた

もう一度git push heroku master

またでる

 

gemからsqlite3消してもインストールされてる、、、

remote:        Fetching sqlite3 1.4.2

remote:        Installing sqlite3 1.4.2 with native extensions

why?



config/database.yml

development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000

production:
adapter: postgresql
database: my_database_production
pool: 5
timeout: 5000


 

 

  1. MacのFinder  で、開きたいアプリケーションを検索します。

    Launchpadは使用しないでください。Launchpadではショートカットメニューにアクセスできません。

  2. Controlキーを押しながらアプリケーションアイコンをクリックして、ショートカットメニューから「開く」を選択します。

  3. 「開く」をクリックします。

    アプリケーションはセキュリティ設定の例外として保存され、今後は登録済みのアプリケーションと同様に、ダブルクリックすることで開くことができるようになります。