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

  • Paulo Bautista

    Paulo Bautis

    21 Aralık 2008
  • PCDIY

    PCDIY

    16 AĞUSTOS 2013
  • Tianna Sierra Dance

    Tianna Sierr

    16 EYLÜL 2013