lesson-1_チェーン上にデプロイをしよう
🌏 Web サイトをデプロイしよう
前回のセクションで、IC上にデプロイするための準備が完了しました。
以下のコマンドを実行しましょう。必ず、icp-static-site/
下で実行してください。
dfx deploy --network ic --with-cycles 1000000000000
⚠️ 使用しているPCの環境によっては、フロントエンドのビルドに失敗する可能性があります。
Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to deploy canisters.
Failed to build call canisters.
Failed while trying to build all canisters.
The post-build step failed for canister 'CANISTER_ID' (website) with an embedded error: Failed to build frontend for network 'ic'.: The command '"npm" "run" "build"' failed with exit status 'exit status: 1'.
Stdout:
> icp-static-site@0.0.0 build
> vite build
Stderr:
failed to load config from ../icp-static-site/vite.config.js
error during build:
Error:
You installed esbuild on another platform than the one you're currently using.
This won't work because esbuild is written with native code and needs to
install a platform-specific binary executable.
...