2018-01-01から1年間の記事一覧
Getting Started with Rails — Ruby on Rails Guides rails new blog したら以下のようなエラーがでた。 An error occurred while installing sqlite3 (1.3.13), and Bundler cannot continue. Make sure that `gem install sqlite3 -v '1.3.13' --source 'h…
sandbox-memo.hatenablog.com のあと、rake db:create:all をしてみたら別のエラーが出るようになった。 ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. という…
sandbox-memo.hatenablog.com のあと、rake db:create:all をしてみたら別のエラーが出るようになった。 ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. という…
qiita.com のデータベースの作成のとこでつまずき。 rake db:create:all したらエラーが出て You have already activated rake 12.3.0, but your Gemfile requires rake 12.3.1. Prependingbundle execto your command may solve this. と言われてしまった。…
qiita.com を見ながら環境構築してたらエラーでたのでメモ。 config.vm.synced_folder ".", "/vagrant", type: "nfs" vagrant reload したら NFS requires a host-only network to be created. Please add a host-only network to the machine (with either …
qiita.com の記事を参考にsinatraのインストールからハロワまでやってみようとしたらエラーが出た。 #myapp.rb require 'sinatra' require 'sinatra/reloader' get '/' do "Hello world " end ってのつくって、ruby myapp.rb したら /Library/Ruby/Site/2.3.…
Wordpress以外のいいかんじのCMSないかなーとおもっていたらKeystone JSというのがよさげだったので試してみたメモ。 環境はCloud9でござる。 参照したページ セットアップは超簡単。 KeystoneJSとYEOMANとmongoDBの各公式ページをみて、書いてあることを実…
zcat hoge.sql.gz | mysql -h 127.0.0.1 -u root -p hoge_local といういつものコマンドでgzipをDBにインポートしようとしたら、 zcat: can't stat: hogesql.gz (hoge.sql.gz.Z): No such file or directory というエラーになった。 いや、No such file or d…
スマホの空き容量がない民の自分には、PWAがめっちゃ便利。 日本向けのサービスでPWA対応してるやつメモ。 MAP https://www.google.co.jp/maps/ ESTATE https://suumo.jp/ SNS https://twitter.com/ https://www.tumblr.com/ TRAVEL https://www.wegotravel.…
herokuにスケジュールアプリを載せるべく、時刻を表示しようとしたら なぞのエラーになってしまった。 heroku logs -t してみたら ActionView::Template::Error (undefined method 'strftime' for nil:NilClass): だそうな。 要素がnilなものに対してstrftim…
Warning: the running version of Bundler (1.14.6) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. Your Ruby version is 2.4.0, but your G…
挫折した人必見!HerokuでRailsアプリを公開する方法 | 侍エンジニア塾ブログ | プログラミング入門者向け学習情報サイト このサイトを見ながらherokuにデプロイしようと思ってたら、gem install pgでつまづいた。 いろいろググって他の人の試行錯誤結果を試…
Railsでこんなエラーが出た。 ActiveRecord::SubclassNotFound in PostController#create The single-table inheritance mechanism failed to locate the subclass: '日本酒'. This error is raised because the column 'type' is reserved for storing the …
Google Cloud Platformをコマンドラインから操作したかったのでSDKをいれた。 Cloud SDK | Google Cloud ここからダウンロードして、展開したフォルダを任意のディレクトリ(hoge)に移動。 cd ./hoge して ./google-cloud-sdk/install.sh ./google-cloud-sdk/…