Skip to content

Commit

Permalink
Windows fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sshaw committed Mar 18, 2017
1 parent 6a75be4 commit 7673303
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class App < Padrino::Application

configure :production do
config_file ITMSWEB_CONFIG
# Padrino requires this else it will raise an exception
set :delivery_method, :smtp if Gem.win_platform?
end

configure :test do
Expand Down
2 changes: 1 addition & 1 deletion upgrade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def upgrade_gemfile(gemfile)

abort "usage: upgrade CURRENT_INSTALLATION_DIRECTORY" if ARGV.none?

install_root = ARGV.shift
install_root = File.expand_path(ARGV.shift)
failure("cannot find the current installation directory #{install_root}") unless File.directory?(install_root)

not_in_root = "missing %s; upgrade must be run in the upgraded version's root directory"
Expand Down

0 comments on commit 7673303

Please sign in to comment.