0
0

More than 3 years have passed since last update.

Ruby on Railsの開発環境でPostgreSQLを利用してPJを作成する

Posted at

Rails new

$ rails new app-name -d postgresql
$ cd app-name

app-nameは任意の名前をつける

vs codeを開く

$ code .

この時点で

-bash: code: command not found

と怒られた方はvscodeの設定が必要

コマンドパレットを開き「shell command」
すると『Shell Command: Install 'code' command in PATH command.』
が表示されるので適用するとできるようになる

データベースの作成

$ rails db:create

localhost:3000にアクセスするとRailsの初期画面が表示されたのでできているのではないかと思います。

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