Deploying to Mainnet

Are we able to deploy applications to the mainnet yet? If so how are cycles added to the canister?

1 Like

Accidentally found my answer!

1 Like

Network deployment
Following the instructions given here :slight_smile:

Enjoying learning. However, I have stumbled on this. Please help

% dfx ledger account-id
error: Found argument ‘ledger’ which wasn’t expected, or isn’t valid in this context

% dfx --help
dfx 0.6.26
No options or subcommands: ‘ledger’

Hi
You’ll need to upgrade dfx to 0.7.0 to see the ledger sub command.
Add DFX_VERSION=0.7.0 before the installation command.
DFX_VERSION=0.7.0 sh -ci “$(curl -fsSL https://sdk.dfinity.org/install.sh)”

2 Likes

Impossible to deploy on the mainnet !!

The commands took me some ICP, not a big amount fortunately, but guys, is it nice to give the information in the bottom of a page that is not the getting started tutorial ?

Because application subnets are not yet widely available to the general public, you should not convert ICP tokens to cycles on the Internet Computer.

For an introduction to developing applications locally, see the Local development quick start and Tutorials.

See below my journey results:

lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic balance
0.00010000 ICP

lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic create-canister blah-blih... --amount .00001
The Replica returned an error: code 5, message: “Canister ryjl3-tyaaa-aaaaa-aaaba-cai trapped explicitly: Panicked at ‘You have tried to spend more than the balance of your account’, rosetta-api/ledger_canister/src/lib.rs:300:13”
OK, I need more ICPs for the transaction fees. Lets transfer more and try again…
lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic balance
0.10010000 ICP

lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic create-canister blah-blih... --amount .001
Transfer sent at BlockHeight: 101622
Refunded at block height 101625 with message :No subnets in which to create a canister.
lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic balance
Nice, I lost 0.0007 ICPs…wait how much is this in dollars ? $400+ that I paid near introduction, ~$100 that they are “worth” right now ? $4.20 (500/119) that they were worth for the airdrop beneficiary (you know, those earthworms that were constantly whining on the telegram group “when airdrop, you scammers blabla I paid $10 for registration fees, refund !” that can now get ~$10000 by selling them on exchanges to people like you and me that need them for… yes, for losing them in failed transactions)?
0.09940000 ICP
lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic create-canister blah-blih...
Transfer sent at BlockHeight: 101678
Refunded with message: No subnets in which to create a canister.
lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic balance
0.09920000 ICP
This time I lost only 0.0002…

1 Like

The team is still adding subnets, until this process hasn’t finished you cannot deploy to mainnet just yet. If you want to deploy a frontend you can try fleek.co to bypass this restriction :slight_smile:

1 Like

I am getting that same error when deploying on fleek. Super-simple static site, tried different docker images with no luck.

Whats your error ? I deployed in fleek.co

Whats your error ? I deployed in fleek.co

Have a look but this simple static
https://xhboi-liaaa-aaaad-qac6q-cai.raw.ic0.app/index.html

You might ask them for support, they have a slack channel and are super helpful!

Is still the deployment to mainnet is not supported?
I am still getting issue with dfx deploy --network=ic…
@all
@cryptoschindler

1 Like

Still not… I’m sure it will come soon( matter of weeks I believe)

1 Like

Okay, thanks for reply