0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

バージョンアップをする

Posted at

Railsのバージョンアップをする

Cloud9のRailsのバージョンアップをします。Cloud9のターミナルに以下のように入力して実行しましょう。

username:~/environment $ gem install rails -v 5.2

Yarnをnpm経由でインストール

Yarnは、システムにインストールするときにNode.jsにバンドルされているnpmパッケージマネージャーを使用してインストールすることをお勧めします。(cloud9で実施)

npmをインストールしたら、次の両方を実行してYarnをインストールおよびアップグレードできます。

npm install --global yarn

バージョンの確認

yarn --version

Add gem ‘sqlite3’というエラーが出てRailsのコントローラーが作成できない時の対処

$ gem install rails -v 5.0.3

gem 'sqlite3'
を
gem 'sqlite3', '~> 1.3.6'
にして

$bundle update
でGemfileの変更内容を反映させます。
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?