Error deploying a Ruby on Rails App

This was my first time deploying any app to fly.io.

I encountered below error when trying to deploy a Ruby on Rails app.

Error: Get "https://api.machines.dev/v1/apps/flix6d": dial tcp 127.0.0.1:443: connect: connection refused

Here’s the steps:

  1. Ran fly launch from a Rails app’s root folder
  2. Press N when prompted for “Do you want to tweak these settings before proceeding?”

The error came out immediately after I’ve performed step no. 2 above.

May I ask for help from the community?

I’m not seeing that, perhaps a transient error? If the error is still there, try a minimal project first and see if that works:

rails new welcome
cd welcome
echo 'Rails.application.routes.draw { root "rails/welcome#index" }' >> config/routes.rb
fly launch --yes
fly apps open

The issue was resolved by uninstalling pow (GitHub - basecamp/pow: Zero-configuration Rack server for Mac OS X).
I happened to have an older version of pow which recognized domains with .dev as TLD as a “local” server. That had a conflict with api.machines.dev used by fly.io.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.