1
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?

[Codespace] railsサーバー再起動方法

Posted at

対象

GitHubのCodespaceを使って開発している方

前提

codespaceを立ち上げた状態でターミナルのコマンドで再起動します

手順

  1. 起動中のプロセスIDを確認する
    入力コマンド ※「$ 」はターミナルを意味するので入力は不要です
    $ cat /workspaces/[リポジトリ名]/tmp/pids/server.pid
    -> xxxxx(数字)
  2. サーバーを停止する
    $ kill -9 xxxxx ←手順1で取得したプロセスID
  3. 再度サーバーを立ち上げる
    $ rails server
1
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
1
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?