LoginSignup
0
0

More than 3 years have passed since last update.

Vue + Firebase 本番デプロイコマンドメモ

Last updated at Posted at 2020-01-22

前提

①firebaseでの各種設定を済ませていること

②ターミナルでfirebaseへのログイン

$
firebase login
zsh: command not found: firebase

と出てきてしまったら、、
npmのパスに問題がある可能性があるので

npm bin -g

でパスを確認

/Users/emisub/.npm-global/bin
(not in PATH env variable)

(not in PATH env variable)と出てきてしまったらパスを通す必要あり

export PATH=$PATH:`npm bin -g`

でパスを通す

③npmのインストール

$
npm i -g firebase-tools

Vueファイルを本番環境用に

$
npm run build

Firebaseにデプロイ

$
firebase deploy
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0