LoginSignup
3
2

More than 5 years have passed since last update.

middlemanで起動してるサーバーを終了する方法

Posted at

Middlemanで複数サーバーを立ち上げようとして下記のように起こられるとき、使ってないサーバーを終了させるやり方がわからなくて、仕方なくマシン再起動とかしてた。。

The source :rubygems is deprecated because HTTP requests are insecure. Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
== The Middleman is loading
== Port 4567 is unavailable. Either close the instance of Middleman already running on 4567 or start this Middleman on a new port with: --port=4568

サーバーを終了させる方法があった。

$ lsof -i:4567

して、出てきたPIDをkill

$ kill -9 <PID here>

するだけ。

ソースはここ:
What does this error while running 'middleman' mean? - Middleman Forum

他の方法としては、かぶらないportを利用して起動させれば複数立ち上げ可能。

$ bundle exec middleman --port 5000
3
2
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
3
2