How can I pull an existing heroku app to new location for development?

前端 未结 5 1854
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-02 05:24

I currently have the latest version of my code on another computer that I want to develop from (Home computer and laptop for when I\'m out and about) I set up heroku for my

5条回答
  •  心在旅途
    2020-12-02 05:51

    First of all, you'll want to follow the Quick Start instructions for Heroku, which you can get straight from the horse's mouth, right here: https://devcenter.heroku.com/articles/quickstart

    Once you've gotten through step 3, come back here.

    Then, you can type this into the command line: heroku git:clone -a myapp

    This is described here: https://devcenter.heroku.com/articles/git-clone-heroku-app

    Then, if you want to grab the database too, here are some options. Newer Heroku instructions on import/export: https://devcenter.heroku.com/articles/heroku-postgres-import-export

    Older heroku instructions on push and pull: https://blog.heroku.com/archives/2009/3/18/push_and_pull_databases_to_and_from_heroku

    If you are using mongo, this is a useful tool to sync your mongo database: https://github.com/pedro/heroku-mongo-sync#readme

提交回复
热议问题