Hazırlama Heroku örneği | Netgez.com
SORU
14 AÄžUSTOS 2009, Cuma


Hazırlama Heroku örneği

Üretim kullanımı için www.myapp.com Test için ve daha sonra dev.myapp.com kod bas edebilmek istiyorum. Bu mümkün Heroku ile mi?

CEVAP
21 AÄžUSTOS 2009, Cuma


Heroku için arayüz aslında Git bir dalıdır. Heroku gem onların API ile bazı, ama Git deponuzu içinde, sadece uzak yeni bir şube.

heroku create yourapp # production
git br -D heroku # delete the default branch

heroku create staging-yourapp # staging
git br -D heroku # delete the default branch

Yukarı Heroku üzerinde birden fazla uygulamayı ayarladıktan sonra, böyle Git deponuzu yapılandırmak gerekir:

git remote add staging git@heroku.com:staging-yourapp.git
git push origin staging

git remote add production git@heroku.com:yourapp.git
git push origin production

Ben genellikle bir 'çalışan' şube, Efendimiz için Github kullanın. işe

Bu sizin için durum böyle varsayarak, dağıtmak, iş akışı muhtemelen bir şey gibi görünecektir:

git co -b working
# do some work

# push to github:
git co master
git merge working
git push

# push to staging:
git co staging
git merge master
git push origin staging

# push to production
git co production
git merge master
git push origin production

Bunu PaylaÅŸ:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VÄ°DEO

Rastgele Yazarlar

  • booba1234

    booba1234

    22 Temmuz 2006
  • Electro Posé

    Electro PosÃ

    21 ÅžUBAT 2013
  • VJ VIMANA

    VJ VIMANA

    3 Mayıs 2007