Is there a way to change the location of how the site is created? currently easyengine creates the site in /var/www/ I want to change the location since I’m running low on space in that location. I mounted a new drive so i want to switch site location to /data/var/www/ Is there any trick to do this?
just move your website data in the folder you want, then edit the root path in nginx configuration
but wouldn’t that break some of commands in ee? like disabling the site
It will not break ee disable command, but some other may not work properly
I’d do a little different.
ee site createas usual
domain.comin your new hard drive:
mv /var/www/domain.com/* /data/var/www/domain.com/
rm /var/www/domain.com -rf
ln -s /data/var/www/domain.com /var/www/
The symbolic link will make everything work as if the website was configured on default location, while it’s files would be actually stored wherever you want.
Great solution, I will copy that somewhere if I need it later.