Skip to content

Commit

Permalink
changes to local/dev server, readme, dev server access, local develop…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
bak11004 committed Sep 6, 2016
1 parent f967545 commit b8c59ff
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 17 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@

Putting this into wordpress.

## Vagrant
## Vagrant/Docker

Choices for local development are Docker and Vagrant.

```
# Replace {env} with your desired environment, most likely "local"
docker-compose -f docker-compose-{env}.yml up -d
```

Wordpress development on [Vagrant](https://www.vagrantup.com/docs/installation/)

Expand All @@ -15,23 +22,24 @@ vagrant up

The above will create a local site at [http://ation.local](http://ation.local/) that points to the `www` folder.

## Production
<!-- ## Production
Using AWS at the moment. You will need to configure `aws` and `ecs-cli` to deploy. After making changes and appspec is good:
```
aws deploy push --application-name ation --description "Your description" --ignore-hidden-files --s3-location s3://dmd-ation/Revision.zip --source .
```
Then you will have to deploy with CodeDeploy on the console.
Then you will have to deploy with CodeDeploy on the console. -->

## Development

Development started with node v5.
Development started with [node](https://nodejs.org/en/) v5, and also utilizes [composer](https://getcomposer.org/doc/00-intro.md/).

```
cd www/wp-content/themes/ation2016
npm install
composer install
```

Then use `gulp` to develop, it watches the `src/images/`, `src/styles/`, and `src/scripts/` folders and compiles their production version to the `static/` directory.
Expand All @@ -44,6 +52,7 @@ Our relevant project structure is as follows:

```
/ationframework
/docker-compose-{env}.yml # Docker Compose Files per environment
/www
/wp-env # Holds environment specific wordpress variables (db)
/wp-content
Expand Down
7 changes: 6 additions & 1 deletion docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ wordpress:

db:
image: mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: wordpresspw
MYSQL_ROOT_PASSWORD: wordpresspw
MYSQL_USER: ation
MYSQL_PASSWORD: ationmedia
MYSQL_DATABASE: ation
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
wordpress:
image: wordpress:4.5-apache
image: wordpress:4.6-apache
ports:
- 80:80
volumes:
Expand Down
1 change: 0 additions & 1 deletion env/local.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
WORDPRESS_DB_HOST=develop.digitalmediauconn.org
WORDPRESS_DB_USER=ation
WORDPRESS_DB_PASSWORD=ationmedia
WORDPRESS_DB_NAME=ation
Expand Down
4 changes: 1 addition & 3 deletions www/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 64M

# END WordPress
5 changes: 2 additions & 3 deletions www/wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@

define('DB_PASSWORD', 'ationmedia');

define('DB_HOST', 'develop.digitalmediauconn.org');
define('DB_HOST', 'mysql');

define('DB_CHARSET', 'utf8');

Expand Down Expand Up @@ -286,11 +286,10 @@

if ( !defined('ABSPATH') )

define('ABSPATH', dirname(__FILE__) . '/');
define('ABSPATH', dirname(__FILE__) . '/');



/** Sets up WordPress vars and included files. */

require_once(ABSPATH . 'wp-settings.php');

6 changes: 3 additions & 3 deletions www/wp-env/ation.develop.digitalmediauconn.org.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
define('DB_PASSWORD', 'ationmedia');

/** MySQL hostname */
define('DB_HOST', 'develop.digitalmediauconn.org');
define('DB_HOST', '127.0.0.1');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

define('WP_HOME', 'http://ation.develop.digitalmediauconn.org/www');
define('WP_SITEURL', 'http://ation.develop.digitalmediauconn.org/www');
define('WP_HOME', 'http://ation.develop.digitalmediauconn.org');
define('WP_SITEURL', 'http://ation.develop.digitalmediauconn.org');

/** WP content directory */
define('WP_CONTENT_URL', WP_HOME . '/wp-content');
Expand Down
2 changes: 1 addition & 1 deletion www/wp-env/ation.local.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
define('DB_PASSWORD', 'ationmedia');

/** MySQL hostname */
define('DB_HOST', 'develop.digitalmediauconn.org');
define('DB_HOST', 'mysql');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
Expand Down

0 comments on commit b8c59ff

Please sign in to comment.