LoginSignup
1
1

More than 3 years have passed since last update.

Heroku deploy 際へのエラー解消

Posted at

herokuへdeploy

herokuへdeployして,スケジューラが動いているか確認したら,

FileNotFoundError: [Errno 2] No such file or directory: 'geckodriver': 'geckodriver'

上記のようなエラーを吐いていた.

どうも,スクレイピングの際に使っていた geckodriver をherokuにもbuildさせないといけないらしい

対処法1

まだ, heroku create がまだである場合は.

$ heroku create [appname] --buildpack http://github.com/buitron/geckodriver-buildpack

とすれば,buildの際に一緒にやってくれる

対処法2

heroku create をしてしまった場合

$ heroku buildpacks:add http://github.com/buitron/geckodriver-buildpack
$ git push heroku master

こうすれば,対処可能である.
スクレイピングの際によく使うやつだからつれつれと書いてみた

参考

参考にしたサイト1
参考にしたサイト2
参考にしたサイト3

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1