This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Make file sending path relative to current file (#1047)

  • Loading branch information...
nakhbari committed Jun 29, 2018
1 parent 690330a commit 6618cc7248ea341323faee69d9002f67bb9f67c4
Showing with 3 additions and 3 deletions.
  1. +3 −3 fastlane_app.rb
View
@@ -50,7 +50,7 @@ class FastlaneApp < Sinatra::Base
# display of real-time output
set(:server, "thin")
get "/favicon.ico" do
send_file(File.join("public", "favicon.ico"))
send_file(File.join(File.dirname(__FILE__), "public", "favicon.ico"))
end
if ENV["FASTLANE_CI_ERB_CLIENT"]
@@ -64,8 +64,8 @@ class FastlaneApp < Sinatra::Base
else
# Any route that hasn't already been defined
get "/*" do
# Use Angular Web App instead
send_file(File.join("public", ".dist", "index.html"))
# Using __FILE__ as root to search relative to this file
send_file(File.join(File.dirname(__FILE__), "public", ".dist", "index.html"))
end
end
end

0 comments on commit 6618cc7

Please sign in to comment.