Repository navigation
Docs Template
(Site Type / Status. Drupal, WordPress, under development, maintenance, etc...)
- Name (Team Lead)
- Name (Backend)
- Name (Frontend)
- Name (PM)
- Name (Design/UX)
Note: it is a good practice to run backups before deploying.
`cd ~/projects/PROJECTAME;git pull;./scripts/deploy.sh`
Clone into projects folder, install to ~/Sites/:
cd ~/projects
git clone git@github.com:thinkshout/PROJECTNAME.git
cd PROJECTNAME
composer update
./scripts/build.sh ~/Sites/PROJECTNAME root root PROJECTNAME
Download db and files from [production](production backup URL)
Install the db by opening Sequel Pro, deleting the PROJECTNAME db,
adding a new PROJECTNAME db, and importing the live db, then truncating
all of the cache_* tables.
Install the files by unzipping the file download and copying them
to ~/Sites/PROJECTNAME/sites/default/files, then run:
chmod -R 777 ~/Sites/PROJECTNAME/sites/default/files
cd ~/Sites/PROJECTNAME;sed -i '' 's/# RewriteBase \/$/RewriteBase \//g' ./.htaccess
drush cc all
drush fra -y
Log in: drush uli
Disable cache and JS/CSS file aggregation
at http://PROJECTNAME.dev/admin/config/development/performance
Information on platform-based testing and local goes here. See https://github.com/thinkshout/ncyl/wiki#testing for a good example.
Theme directory is at:
~/Sites/PROJECTNAME/profiles/PROJECTNAME/themes/custom/PROJECTNAME
To get Sass running, cd to that directory and run bundle
Thereafter, you only need to run this command:
cd ~/Sites/PROJECTNAME/profiles/PROJECTNAME/themes/custom/PROJECTNAME;rake serve;