简体   繁体   English

heroku 上的暂存和生产环境

[英]Staging and production environment on heroku

I want to create staging environment on heroku of an existing app.我想在现有应用程序的 heroku 上创建登台环境。 I want to know two things我想知道两件事

1) Is it using same database of production or not? 1)是否使用相同的生产数据库? If yes then either it requires some settings or not?如果是,那么它是否需要一些设置?

2) Is the url's of both staging and production environments change or not? 2) 暂存环境和生产环境的 url 是否更改?

Please don't give links请不要给链接

  1. No. Two different databases.不。两个不同的数据库。

  2. Yes it will be different.是的,它会有所不同。

staging and production are normally on two different hosts, with two different databases, two different url's.登台和生产通常在两个不同的主机上,有两个不同的数据库,两个不同的 url。

  1. It is a separate database.它是一个单独的数据库。 I cloned the one from production to get a good simulation.我从生产中克隆了一个以获得良好的模拟。
  2. Not sure if I understand what you mean.不知道我是否明白你的意思。 But if the question is whether staging and production have the same URL then no.但如果问题是登台和生产是否具有相同的 URL,那么没有。 Staging usually looks like "prod-url"-staging分期通常看起来像“prod-url”-分期

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM