LoginSignup
2
1

More than 5 years have passed since last update.

Heroku のアプリを複製する

Last updated at Posted at 2018-12-06

Heroku のアプリを複製する方法です。

ログイン

heroku login -i

アプリの一覧

heroku apps

ex01 というアプリがあったろして、それをダウンロード

heroku git:clone --app ex01

設定されている環境変数を確認

heroku config

ex02 という名前のアプリを作成する

.git というフォルダーを削除する必要があります。

mv ex01 ex02
cd ex02
rm -rf .git
heroku login -i
git init
git add .
git commit -m "init"
heroku create ex02
git push heroku master

環境変数の設定

heroku config:set SECRET_KEY=hello
heroku config:set AAA_KEY=good123
heroku config:set AAA_SECRET=morning999
2
1
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
2
1