Skip to content

Commit

Permalink
Use port 9292 instead of 4567
Browse files Browse the repository at this point in the history
  • Loading branch information
daaang committed Aug 1, 2020
1 parent 267f908 commit c829744
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ RUN bundle install

ADD * $APP_HOME/

EXPOSE 4567
CMD ["bundle", "exec", "rackup", "--host", "0.0.0.0", "-p", "4567"]
EXPOSE 9292
CMD ["bundle", "exec", "rackup", "--host", "0.0.0.0", "-p", "9292"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Running

### With docker

$ docker run -p 4567:4567 \
$ docker run -p 9292:9292 \
docker.pkg.github.com/mlibrary/mattlach-phineas-testing-actions/web:latest

Note: if the above complains about credentials, you probably need to
Expand All @@ -28,6 +28,6 @@ this docker image.
Accessing
---------

Either way, you can view the results at <http://localhost:4567/>.
Either way, you can view the results at <http://localhost:9292/>.

[1]: https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token
8 changes: 2 additions & 6 deletions config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ get '/' do
'Hello, World!'
end

get '/matt' do
'Hello, Matt!'
end

get '/noah' do
'Hello, Noah!'
get '/:name' do |name|
"Hello, #{name.capitalize}!"
end

run Sinatra::Application

0 comments on commit c829744

Please sign in to comment.