How do you deploy to an org?

I ran this command:

flyctl launch --no-deploy -c ./fly.staging.toml --org my-org

The app is now listed under my-org in the fly console. Then I run:

flyctl deploy --config ./fly.staging.toml --dockerfile ./Dockerfile -t $FLY_API_TOKEN

and I am getting this error:

Error: Could not find App “my-app-stg”

What do I need to do to deploy my-app-stg to my-org ? I have no problems deploying to personal.

Thanks,

I got it working. I guess the token was not correct. I created it without a fly.toml file and before I created the org. I created a new token after the org was created and used the -c flag and now it works.

fly tokens create deploy --config ./app/fly.staging.toml

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