Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ローカル環境を構築(Nextスターターキットベース) #2

Closed
ryo-i opened this issue Aug 16, 2021 · 3 comments
Closed

Comments

@ryo-i
Copy link
Owner

ryo-i commented Aug 16, 2021

Nextアプリスターターキットをベースに
https://github.com/ryo-i/next-app-started

Vercelにもデプロイしたい

@ryo-i
Copy link
Owner Author

ryo-i commented Aug 17, 2021

手順はこちらと同じ
https://www.i-ryo.com/entry/2021/03/14/171321

  • GitHub上にリモートリポジトリを作成(リポジトリ名「beat-player」)
  • アプリを入れているフォルダで下記のコマンドを実行
    でNextアプリスターターキットをクローン(アプリ名は「beat-player」)
    $ git clone https://github.com/ryo-i/next-app-started.git beat-player
  • 「beat-player」のフォルダに移動
    $ cd beat-player
  • パッケージをインストール
    $ npm install
  • 「.git」フォルダをいったん削除
  • 「.git」フォルダを再作成
    $ git init
  • リモートのbeat-playerリポジトリと紐づける
    $ git remote add origin https://github.com/ryo-i/beat-player.git
  • ReadMeがNextアプリスターターキットの内容なのでリモートのビートプレイヤーの内容に変更
  • リモートにプッシュしてみる
    $ git add .
    git commit -m "ファイル一式アップ"
    git push origin main

※追加作業

@ryo-i
Copy link
Owner Author

ryo-i commented Aug 17, 2021

脆弱性からパッケージアップデートを勧められた

NCUインストール
$ npm install -g npm-check-updates
NCU実行
$ ncu -u
パッケージインストール
$ npm install

参考になった記事
https://blog.cntlog.net/archives/3704

@ryo-i
Copy link
Owner Author

ryo-i commented Aug 17, 2021

リポジトリをVercelにデプロイしたい

こちらの手順にて
https://www.i-ryo.com/entry/2021/04/21/072952

  • New Projectをクリック
  • Import Git Repositoryでリポジトリを選択
  • Create a TeamはSkip(複数人で作業しないため)
  • Configure ProjectはそのままでDeploy

でけた!
https://beat-player.vercel.app/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant