lib/capistrano3/dotenv/upload/upload.rake in capistrano3-dotenv-upload-0.1.2 vs lib/capistrano3/dotenv/upload/upload.rake in capistrano3-dotenv-upload-0.1.3

- old
+ new

@@ -9,11 +9,11 @@ def warning_env_file_not_found(file) info "The #{file} was not specified or not found." end def upload_env_file(file) - to_path = "#{shared_path}/#{file}" + to_path = "#{shared_path}/#{File.basename(file)}" info "deploying #{file} => #{to_path}" upload! file, to_path end desc "Upload .env files to remote server" @@ -24,10 +24,10 @@ stage_env_file = fetch(:stage_env_file, ".env.#{fetch(:stage)}") on roles(:all) do [env_file, stage_env_file].each do |file| if env_file_is_okay?(file) - upload_env_file(file) + upload_env_file(file) else warning_env_file_not_found(file) end end end