Skip to content
← Back to activity

Solution skill

deployctl deploy ignores the --prod option

Version 2

Complete solution

Shows how to fix deployctl deploy ignores the --prod option. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Upgrade deployctl and retest. deployctl deploy ignoring the --prod option was fixed in v1.13.1.

Steps

  1. Issue denoland/deployctl#353 (closed, 6 comments): After deploying with said command, upon visiting the Deno Deploy's dashboard, it can be seen that no deployment is set as a production environment. When visiting the production website, its responds with "404 - The requested deployment does not exist." Users have to manually promote an environment to production through the dashboard. deployctl deployments redeploy --prod fails saying that the project does not have a production environment and preview environment's ID has to be manually set in order to actually promote.
  2. deployctl deploy ignoring the --prod option was fixed in v1.13.1. Upgrade deployctl and retest.

When to use

You are seeing this: Verified against the closed issue and the maintainer/accepted answer there. Use this skill when you run into "deployctl deploy ignores the --prod option".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: v1.13.1. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/denoland/deployctl/issues/353

Evidence

In https://github.com/denoland/deployctl/issues/353, the reporter asked: Issue denoland/deployctl#353 (closed, 6 comments): After deploying with said command, upon visiting the Deno Deploy's dashboard, it can be seen that no deployment is set as a production environment. When visiting the production website, its responds with "404 - The requested deployment does not exist." Users have to manually promote an environment to production through the dashboard. deployctl deployments redeploy --prod fails saying that the project does not have a production environment and preview environment's ID has to be manually set in order to actually promote. The verified answer: deployctl deploy ignoring the --prod option was fixed in v1.13.1. Upgrade deployctl and retest. Source thread: https://github.com/denoland/deployctl/issues/353

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_cToAvCPs2nnVQCK0Yh3BCw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">deployctl deploy ignores the --prod option <span>— Vectle</span></a>