cancel
Showing results for 
Search instead for 
Did you mean: 

deploying to production server how did you do it?

deploying to production server how did you do it?

Hi All,

 

I am trying to deploy my dev site to a prod site on an new server.

 

The old server has Vesta and the new server uses direct admin.

 

My goal is to make a 1:1 copy to the prod site and off course let it roll.

 

While copying i encountered the symlinks, which i couldn't copy, but because they where in the var dir, i just deleted the content of the var dir.

 

After setting up the new site filling the system gives me ;

Warning: Cannot modify header information - headers already sent by (output started at /home/myserver/domains/mydomain.nl/public_html/index.php:1) in /home/myserver/domains/mydomain.nl/public_html/vendor/magento/framework/Stdlib/Cookie/PhpCookieManager.php on line 126 #0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'Cannot modify h...', '/home/myserver/...', 126, Array) #1 /home/myserver/domains/mydomain.nl/public_html/vendor/magento/framework/Stdlib/Cookie/PhpCookieManager.php(126): setcookie('form_key', 'OSbI6GJHvqiGXVw...', 1457787078, '/', 'mydomain...', false, false) #2 

so i guess i am doing something totally wrong thats why i first would like to know how you have copied your dev to prod server and try to copy your solution.

 

I canto find documentation for this

 

Otherwise it could be a needle in a haystack for me to find out how to fix this.

 

The dev site works nicely

1 REPLY

Re: deploying to production server how did you do it?

  1. Copy the files (except the cache)
  2. Copy the database
  3. Change the root URL: https://mage2.pro/t/22
  4. Set the proper filesystem permissions: http://devdocs.magento.com/guides/v2.0/install-gde/prereq/file-system-perms.html

I have created a Bash script for myself to move a Magento 2 site: https://mage2.pro/t/30