プログラム初心者です。
MacOSX 10.14.3、Rails APIをバックエンドにVueJSでフロントを作っています。
標題の通りですが、NUXTの教科書では、開発サーバーがlocalhostで立ち上がるところ、192.168.55.12となっています。
なぜここにlocalhostとならないのでしょうか? 実質は同じなのでしょうか?
↓Nuxt開発サーバー立ち上げ時の表示
╭─────────────────────────────────────────────╮ │ │ │ Nuxt.js v2.4.5 │ │ Running in development mode (spa) │ │ Memory usage: 179 MB (RSS: 328 MB) │ │ │ │ Listening on: http://192.168.55.12:3333 │ │ │ ╰─────────────────────────────────────────────╯
/etc/hostsは以下のようになっていました。
# Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost
関係あるかどうか、MySQLは以下のようになっています。
mysql> \s -------------- mysql Ver 14.14 Distrib 5.7.25, for osx10.14 (x86_64) using EditLine wrapper Connection id: 21 Current database: Current user: root@localhost SSL: Not in use Current pager: stdout Using outfile: '' Using delimiter: ; Server version: 5.7.25 Homebrew Protocol version: 10 Connection: Localhost via UNIX socket Server characterset: utf8 Db characterset: utf8 Client characterset: utf8 Conn. characterset: utf8 UNIX socket: /tmp/mysql.sock Uptime: 20 hours 45 min 35 sec Threads: 3 Questions: 1267 Slow queries: 0 Opens: 180 Flush tables: 1 Open tables: 173 Queries per second avg: 0.016 --------------
回答2件
あなたの回答
tips
プレビュー