Changing the webroot


#1

Hi, i’m using capistrano to deploy on the server and i would like to change the webroot.

Folders example :

/current -> /var/www/my_app_name/releases/20150120114500/

/releases/

/releases/20150080072500

/releases/20150090083000

/releases/20150100093500

/releases/20150110104000

/releases/20150120114500

(http://capistranorb.com/documentation/getting-started/structure/#)

How do we change the webroot so WP work perfectly?

Thank you


#2

Hii

You can change the webroot by changing root directive in NGINX site config .

Use command :

  1. ee site edit example.com
  2. change PATH in root directive

PLEASE NOTE : Changing webroot will break the functionality of EasyEngine for the specified site.


#3

Hi Prabuddha, thank you for your kind reply.

Yes when i change the webroot the site was not working properly, they a way to fix it ?

thanks


#4

Could you provide site-specific error.log for the site, after you change webroot?


#5