Difference between revisions of "Create Site Copy From Dev55"
From GLMWiki
(Created page with "Copy the dev55 (web) folder over to your server directory NOTE: in the following you'll see (user) (dbname) and (pword) These are found in the sites wp-config.php file. You w...") |
|||
Line 1: | Line 1: | ||
Copy the dev55 (web) folder over to your server directory | Copy the dev55 (web) folder over to your server directory | ||
+ | rsync -av dev55:/var/www/server/(sitename)/web/ web | ||
NOTE: in the following you'll see (user) (dbname) and (pword) | NOTE: in the following you'll see (user) (dbname) and (pword) |
Revision as of 15:55, 30 December 2015
Copy the dev55 (web) folder over to your server directory
rsync -av dev55:/var/www/server/(sitename)/web/ web
NOTE: in the following you'll see (user) (dbname) and (pword) These are found in the sites wp-config.php file. You will need to replace the (user) with user etc.
Rename this web folder to the sitename
mv web mountpleasantwow
Make sure permissions are good. Group writeable
copy the database (from dev55) [no space between -p and the password]
mysqldump -u (user) -p(pword) (dbname) > fileName.sql
Create the database on your localhost
mysql -u root -p create database (dbname); grant usage on *.* to (user)@localhost identified by '(pword)'; grant all privileges on (dbname).* to (user)@localhost;
Edit the file and replace the dev55 site url with your new localhost. In vim.
:%s;mountpleasantwow.gaslightmedia.com;mountpleasantwow.localhost;g
Import the database
mysql -u (user) -p(pword) (dbname) < fileName.sql
Add new site file for nginx.
Edit your /etc/hosts file to use sitename.localhost