Skip to content

Commit

Permalink
Use bin/dev to start the application
Browse files Browse the repository at this point in the history
Previously, we used `foreman start` to start the local application
server. This did not give us a smooth experience if `foreman` was not
already installed.

This commit adds `bin/dev` to start the local application. `bin/dev` has
become a convention. The script checks for `foreman` and installs it if
it is not already available.
  • Loading branch information
smaboshe committed Apr 25, 2024
1 parent 9eca751 commit f12b9df
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ your work.

% bin/setup

3. Start Foreman.
3. Start the application.

% foreman start
% bin/dev

4. Verify that the app is up and running.

Expand Down
9 changes: 9 additions & 0 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

if ! foreman version &> /dev/null
then
echo "Installing foreman..."
gem install foreman
fi

foreman start

0 comments on commit f12b9df

Please sign in to comment.