# Agile Web Development with Rails 8:

**URL:** <https://forum.devtalk.com/t/agile-web-development-with-rails-8/184979>\
**Category:** PragProg Customers\
**Tags:** book-agile-web-development-with-rails-8, errata\
**Created:** [22 January 2025 20:30 UTC](https://forum.devtalk.com/t/agile-web-development-with-rails-8/184979 "2025-01-22T20:30:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![randyL78](https://forum.devtalk.com/user_avatar/forum.devtalk.com/randyl78/32/7082_2.png) [@randyL78](https://forum.devtalk.com/u/randyL78)\
**Post date:** [22 January 2025 20:30 UTC](https://forum.devtalk.com/t/agile-web-development-with-rails-8/184979/1 "2025-01-22T20:30:06Z")

</div>

Title: Agile Web Development with Rails 8: page 128 (epub)

On a fresh install, the foreman gem needs to be installed before running `bin/dev`.

---

<div class="post-metadata">

**Author:** ![rubys](https://forum.devtalk.com/user_avatar/forum.devtalk.com/rubys/32/3797_2.png) [@rubys](https://forum.devtalk.com/u/rubys)\
**Post date:** [4 February 2025 19:25 UTC](https://forum.devtalk.com/t/agile-web-development-with-rails-8/184979/2 "2025-02-04T19:25:01Z")

</div>

Are you sure? Here’s the content of `bin/dev`:

```bash
#!/usr/bin/env sh

if ! gem list foreman -i --silent; then
  echo "Installing foreman..."
  gem install foreman
fi

# Default to port 3000 if not specified
export PORT="${PORT:-3000}"

# Let the debug gem allow remote connections,
# but avoid loading until `debugger` is called
export RUBY_DEBUG_OPEN="true"
export RUBY_DEBUG_LAZY="true"

exec foreman start -f Procfile.dev "$@"

```

Note that it will install foremen if not already present.

---

<div class="post-metadata">

**Author:** ![rubys](https://forum.devtalk.com/user_avatar/forum.devtalk.com/rubys/32/3797_2.png) [@rubys](https://forum.devtalk.com/u/rubys)\
**Post date:** [4 February 2025 19:30 UTC](https://forum.devtalk.com/t/agile-web-development-with-rails-8/184979/3 "2025-02-04T19:30:54Z")

</div>

Perhaps the problem is that the install may fail without `sudo`? I’ve added a note.
