New Developer Dev Process

Desktop Server

Download and Setup

To create a development install of a site, we use <a href=”https://serverpress.com/get-desktopserver/” title=”Desktop Server”></a>.
First, you’ll need to download the zipped project file from the link provided. To import, launch Desktop Server and select “Export, import, or share a website.” On the next page, select “Import an existing WordPress website archive.” Select the Import file, and name the site— project.dev is enough, we don’t use “www.”

Connect DB to TDGRID

Migrate DB Pro

At project.tdgrid.com, login with credentials provided and check Tools>Migrate DB Pro>Settings, and copy the secret key under “Connection Info”.

Login to your project.dev install with the same credentials, and under Migrate DB Pro, Select the “Pull” radio button, and paste the secret key in the box provided. Make sure the following find replace is correct:
<code>//project.tdgrid.com >> project.dev</code>
<code>/var/www/project.tdgrid.com/public_html >> /local/path/to/your/own/project.dev</code>

Check “Media Files” as well, and save the profile as “Pull from TDGRID” or whatever you want it to be.

Git Setup

All project archive zips should include an initiated git folder already set up.  Ensure you have been invited as a collaborator on the project, thens simply dragging the project.dev folder to to github app will add it to your list of repositories.

project.tdgrid.com is set up with a cron job that pulls from the repo every minute, automatically keeping the live version up to date with what is committed.  Any code changes (including all plugin installs/updates) should be done from your project.dev install and pushed to github.  Anything saved in the database (settings, posts, images, etc) should be done on the site.

If the commit is related to a specific Asana task, include in the commit message “Asana #<TASKID>”, providing the Task ID found in the URL for the specific task (eg: https://app.asana.com/0/16089738453182/31565215675457)