Git Product home page Git Product logo

Comments (5)

thori0908 avatar thori0908 commented on August 11, 2024

課題1

$ pwd
/home/hori/public_html/railsgirls
$ ls
app  bin  config  config.ru  db  Gemfile  Gemfile.lock  lib  log  public  Rakefile  README.md  README.rdoc  test  tmp  vendor

課題2

$ bundle exec rails server -b 0.0.0.0

from railsgirls.

fr-matsuo avatar fr-matsuo commented on August 11, 2024

確認しました、OKですー


ちなみに、IPは初期値がlocalhostなので、指定しなくても大丈夫かと思います。

$bundle exec rails server --help
Usage: rails server [mongrel, thin etc] [options]
    -p, --port=port                  Runs Rails on the specified port.
                                     Default: 3000
    -b, --binding=IP                 Binds Rails to the specified IP.
                                     Default: localhost
    -c, --config=file                Uses a custom rackup configuration.
    -d, --daemon                     Runs server as a Daemon.
    -u, --debugger                   Enables the debugger.
    -e, --environment=name           Specifies the environment to run this server under (test/development/production).
                                     Default: development
    -P, --pid=pid                    Specifies the PID file.
                                     Default: tmp/pids/server.pid

    -h, --help                       Shows this help message.

from railsgirls.

fr-sasaki avatar fr-sasaki commented on August 11, 2024

@fr-matsuo
実はlocalhostだと外部PCからアクセスできないです。
Rails 4.2 からこのように変更されたので読んでみるとよいかも
http://railsguides.jp/4_2_release_notes.html#rails-server%E3%81%AE%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%E3%83%9B%E3%82%B9%E3%83%88

from railsgirls.

fr-itaya avatar fr-itaya commented on August 11, 2024

ちらっとですがみましたー。

from railsgirls.

fr-sasaki avatar fr-sasaki commented on August 11, 2024

OKなのでクローズします

from railsgirls.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.