# Do we have a way to do deploy profiles?

**URL:** <https://forum.dfinity.org/t/do-we-have-a-way-to-do-deploy-profiles/19697>\
**Category:** Developers\
**Created:** [May 1, 2023, 4:14am UTC](https://forum.dfinity.org/t/do-we-have-a-way-to-do-deploy-profiles/19697 "2023-05-01T04:14:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alejandrade](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/alejandrade/32/4593_2.png) [@alejandrade](https://forum.dfinity.org/u/alejandrade)\
**Post date:** [May 1, 2023, 4:14am UTC](https://forum.dfinity.org/t/do-we-have-a-way-to-do-deploy-profiles/19697/1 "2023-05-01T04:14:58Z")

</div>

Dfx deploy stage

Dfx deploy prod

And have them deploy to 2 different canister sets

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [May 2, 2023, 9:56am UTC](https://forum.dfinity.org/t/do-we-have-a-way-to-do-deploy-profiles/19697/2 "2023-05-02T09:56:47Z")

</div>

> **[Staging Environment | Internet Computer](https://internetcomputer.org/docs/current/developer-docs/production/staging-environment)**
>
> Many projects can benefit from having a staging environment available besides the usual local and live deployments. This page explains how to set up such a staging environment.

---

<div class="post-metadata">

**Author:** ![alejandrade](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/alejandrade/32/4593_2.png) [@alejandrade](https://forum.dfinity.org/u/alejandrade)\
**Post date:** [May 3, 2023, 2:14pm UTC](https://forum.dfinity.org/t/do-we-have-a-way-to-do-deploy-profiles/19697/3 "2023-05-03T14:14:34Z")

</div>

hmm ic-domains doesn’t have a distinction for ecosystem does it. I’m gonna have to generate it with webpack.

---

<div class="post-metadata">

**Author:** ![alejandrade](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/alejandrade/32/4593_2.png) [@alejandrade](https://forum.dfinity.org/u/alejandrade)\
**Post date:** [May 3, 2023, 2:40pm UTC](https://forum.dfinity.org/t/do-we-have-a-way-to-do-deploy-profiles/19697/4 "2023-05-03T14:40:00Z")

</div>

also i know beggars can’t be choosers but the example on the documentation doesn’t work with webpack and some one less experienced than I might have spent hours trying to figure out why.

“my-staging” isn’t a valid key for json object.

---

<div class="post-metadata">

**Author:** ![alejandrade](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/alejandrade/32/4593_2.png) [@alejandrade](https://forum.dfinity.org/u/alejandrade)\
**Post date:** [May 3, 2023, 5:40pm UTC](https://forum.dfinity.org/t/do-we-have-a-way-to-do-deploy-profiles/19697/5 "2023-05-03T17:40:07Z")

</div>

It seems to break DFX\_NETWORK environmental variable. Is it possible to force it to be IC somewhere?

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [May 4, 2023, 8:03am UTC](https://forum.dfinity.org/t/do-we-have-a-way-to-do-deploy-profiles/19697/6 "2023-05-04T08:03:14Z")

</div>

Can you clarify? If you set `DFX_NETWORK` yourself it should automatically deploy to that network unless you override it with `--network` IIRC

---

<div class="post-metadata">

**Author:** ![alejandrade](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/alejandrade/32/4593_2.png) [@alejandrade](https://forum.dfinity.org/u/alejandrade)\
**Post date:** [May 4, 2023, 11:17am UTC](https://forum.dfinity.org/t/do-we-have-a-way-to-do-deploy-profiles/19697/7 "2023-05-04T11:17:17Z")

</div>

When I do dfx deploy —network stage it sets dfx\_network environmental to stage which in turn makes the candid files request agent key and throws an error on load it doesn’t seem to break anything but it’s ugly.
