最終更新:2023-05-29 (月) 09:45:14 (124d)
firebase serve
Top / firebase serve
Firebase Hostingの設定を使用してローカル ウェブサーバーを起動します。
- firebase.jsonが使用されます。
例
- firebase serve
- firebase serve --only functions,hosting?
- firebase serve --only functions?
メモ
- functionsのみの場合、firestoreは本番環境が呼び出される
help
Usage: firebase serve [options] start a local server for your static assets Options: -p, --port <port> the port on which to listen (default: 5000) (default: 5000) -o, --host <host> the host on which to listen (default: localhost) (default: "localhost") --only <targets> only serve specified targets (valid targets are: hosting, functions) --except <targets> serve all except specified targets (valid targets are: hosting, functions) -h, --help output usage information