entity framework - How can I have a staging site for my Azure web app with its own database? -


i have mvc website connected azure web app , has continuous deployment staging site set up. works great! after check in, successful build automatically deployed staging slot of webapp. after verify staging looks good, can swap 2 slots make prod stage , vice versa.

recently decided wanted production , staging slots connect distinct databases can enter test data staging site without cluttering prod database.

i naively though editing connection strings in configuration staging site point new database. seemed work, next time swapped configurations after deploy, realized connection strings swapped in process. not aiming for.

does know how can have 2 deployment slots point different databases , maintain connections after swap? there way should thinking of this?

azure provides answer here. copy-edited text below.

some configuration elements follow content across swap (not slot specific) while other configuration elements stay in same slot after swap (slot specific).

luckily, connection strings can configured stick slot. configure connection string stick slot (not swapped), access application settings blade specific slot, select slot setting box configuration elements should stick slot.

enter image description here


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -