Skip to content

Docs Template

Josef Komenda edited this page Jul 1, 2016 · 4 revisions

Current Status

(Site Type / Status. Drupal, WordPress, under development, maintenance, etc...)

Site Build Info

Build Team

  • Name (Team Lead)
  • Name (Backend)
  • Name (Frontend)
  • Name (PM)
  • Name (Design/UX)

Hosting

Issue Tracking

Redbooth Tasks

Deploying Code

Note: it is a good practice to run backups before deploying.

`cd ~/projects/PROJECTAME;git pull;./scripts/deploy.sh`  

Installation Notes

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

Testing

Information on platform-based testing and local goes here. See https://github.com/thinkshout/ncyl/wiki#testing for a good example.

Front-end Setup

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;

Clone this wiki locally