LoginSignup
0
0

More than 3 years have passed since last update.

環境構築, Build, デプロイまで - Vue-Laravel→Heroku 編 -

Last updated at Posted at 2020-10-14

私のスタイル

初めまして。翁と申します。
ミニマルで強迫観念やストレスなく、かつ最大限を提供する
"Huge Minimalism"
を提唱し、スタイルとして活動させていただいてます。
お手柔らかによろしくお願いいたします。

あくまで"より高みへ。"を意識しており
一記事執筆5分以内と制限しております。ご理解いただけたらと思います。

少しでも痒い所に手が届くような貢献が出来たらと思います。

デプロイまで

1.ローカルコミット

基本ルートディレクトリでコマンドを打っていきます。

>git init
>git add .
>git commit -m "first commit"
//ここで行うことで自動でデプロイ先が設定されます。
>heroku create 
.git/config
[remote "heroku"]
    url = https://git.heroku.com/okinaofficial.git
    fetch = +refs/heads/*:refs/remotes/heroku/*

2.デプロイ

//行く先確認
>git remote -v
heroku  https://git.heroku.com/~~.git (fetch)
heroku  https://git.heroku.com/~~.git (push)
//Herokuにデプロイ
>git push heroku master
//App keyを設定する。
//これをする前はアクセスしても500エラーになるはず
>php artisan --no-ansi key:generate --show

>heroku config:set APP_KEY="一つ上の結果"
//Githubへと
//originを設定
>git remote add origin https://github.com/~~/~~.git

//行く先確認
>git remote -v
heroku  https://git.heroku.com/~~.git (fetch)
heroku  https://git.heroku.com/~~.git (push)
origin  https://github.com/~~/~~.git (fetch)
origin  https://github.com/~~/~~.git (push)

//デプロイ
>git push origin master
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