How to deploy from subdomain (staging) to domain (production)?

I wonder what’s the best and least complex way to deploy an M2 installation to live environment? With M1 it was possible to set up the complete installation with all extensions etc. to an dev subdomain like “dev.mydomain.com” to do all the configuration like tax classes, shipping methods etc. and then just copy all files to “mydomain.com” , copy the database, change etc/app/env.php and core_config_data database table to new domain.

I tried the same with M2 and it still seems to work. Of course + running deploy:mode:set production

But I wonder if that’s actually a safe and reliable way to move from development subdomain to live domain.

Thx

submitted by /u/zlep
[link] [comments]