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ÅŸ:
İzin heroku kodu dağıtırken (açık anah...
Neden insanlar BÖLÜM varsa Heroku kull...
Bir tespit "geçersiz tarih" ...
Nasıl Gıt hazırlama alanından tek bir ...
Codesign hata: profil bulunamadı Hazır...