I’ve been running a small, personal instance of Monica on Heroku for a while.
The app was migrated to fly.io with their/your importer and runs nicely.
Now I’d like to change some things in the running app and thus need access to the settings file.
flyctl and see the app with
fly list apps, but didn’t find out a way of editing files in my ‘container’.
Is there an equivalent to
git pull or
git clone in
fly is not a platform for hosting git repositories and does not use git as a deploy mechanism like Heroku. If you want a remote shared git repo, I recommended setting up a GitHub or GitLab account for source control to manage your source code, and use
flyctl deploy to deploy updates to fly.
fly is not a platform for hosting git repositories and does not use git as a deploy mechanism like Heroku.
I might have been unclear and wanted to make an analogy.
Lemme try again: Is there a way that I can copy all the relevant files to my machine, do some changes and upload them to fly.io again?
Or can I SSH into my fly app somehow?
Only files stored in persistent volumes stick around across deploys. Assuming your config files are on a volume, you can use
fly sftp to download, modify, and upload.
Ah, that makes sense. @michael has the right direction. You can use flyctl ssh sftp and
flyctl ssh console for an ssh console login.
Are you running
flyctl in a folder with a valid
fly.toml for your app? Have you tried specifying the app name with
-a. E.g., try
flyctl ssh console -a name-of-your-app
I don’t have a valid
fly.toml file, as the app was migrated from Heroku without detour over my machine.
flyctl ssh console -a name-of-your-app I can connect, thanks a lot!