Skip to content

Commit

Permalink
appease rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Mar 17, 2024
1 parent 484a55c commit a3a9c81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/dockerfile_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1313,8 +1313,8 @@ def fly_make_toml

# Add statics if not already present and not using a web server and workdir doesn't contain a variable
unless options.nginx? || using_passenger? || options.thruster? || @gemfile.include?("thruster")
workdir = (IO.read 'Dockerfile' rescue '').scan(/^\s*WORKDIR\s+(\S+)/).flatten.last
unless workdir && !workdir.include?('$') && toml.include?("[statics]")
workdir = (IO.read "Dockerfile" rescue "").scan(/^\s*WORKDIR\s+(\S+)/).flatten.last
unless workdir && !workdir.include?("$") && toml.include?("[statics]")
toml += "[[statics]]\n guest_path = \"#{workdir}/public\"\n url_prefix = \"/\"\n\n"
end
end
Expand Down

0 comments on commit a3a9c81

Please sign in to comment.