forked from QScience/cress_code
-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment for local dev instance
drozas edited this page Dec 8, 2014
·
10 revisions
Get DB dump from BitBucket
git clone [email protected]:drozas/cress_website_db.git
Get code from GitHub
git clone https://github.com/CRESS-Surrey/cress_website_code.git
Get files from BitBucket
cd cress_website_code/sites
git clone [email protected]:drozas/cress_website_files.git default
Import dump into the DB
Check permissions - https://www.drupal.org/node/244924 (Linux servers section)
[root@localhost]cd /path_to_drupal_installation (cress_website_code)
[root@localhost]sudo chown -R drozas:www-data .
[root@localhost]sudo find . -type d -exec chmod u=rwx,g=rx,o= '{}' \;
[root@localhost]sudo find . -type f -exec chmod u=rw,g=r,o= '{}' \;
[root@localhost]cd /path_to_drupal_installation/sites
[root@localhost]find . -type d -name files -exec chmod ug=rwx,o= '{}' \;
[root@localhost]for d in ./*/files
do
find $d -type d -exec chmod ug=rwx,o= '{}' \;
find $d -type f -exec chmod ug=rw,o= '{}' \;
done