1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-21 08:53:12 +01:00
WordPress theme for the old ascribe landing page and blog. Also a .zip archive of the site captured in 2018-09.
Go to file
2018-10-31 14:41:52 +01:00
ascribe remove login and main menus 2018-09-03 11:16:53 +02:00
.editorconfig add .editorconfig 2015-12-17 15:21:15 +01:00
.gitignore remove CI stuff, refactor deployment script, update server documentation 2018-05-23 13:51:20 +02:00
.jshintrc convert tabs to spaces in whole codebase, closes #17 2015-12-17 15:55:34 +01:00
2018-09 www.ascribe.io.zip add wget site 2018-10-22 12:28:49 +02:00
composer.json Fix license value in composer.json... 2018-10-31 14:40:00 +01:00
deploy.sh remove CI stuff, refactor deployment script, update server documentation 2018-05-23 13:51:20 +02:00
gulpfile.js move theme files into subfolder 2016-03-21 17:05:04 +01:00
LICENSE Make LICENSE file, consistent with package.json 2018-10-31 14:41:52 +01:00
package.json Make license the same as in composer.json 2018-10-31 14:40:29 +01:00
phpunit.xml.dist convert tabs to spaces in whole codebase, closes #17 2015-12-17 15:55:34 +01:00
README.md remove signup link from menu 2018-05-31 12:04:49 +02:00

wp-theme

WordPress theme for ascribe's landing page and blog

Prerequisites

  • node & npm
  • composer
npm i && composer install

Development

On top of compiling css & js files, this starts a local, live-reloading server with BrowserSync:

gulp

The task assumes the following:

The following compiles css & js files only:

gulp build

Deployment

Deployment happens via rsync'ing the theme folder ./ascribe/ over SSH, as defined in the deployment script.

If you have SSH access to the server, you can do a deployment by calling the deployment script:

# do a fresh build of the CSS & JS
gulp build

# Then deploy
./deploy.sh

It requires the following environment variables to be defined, which is done in the deployment script:

variable description
$ASCRIBE_DEPLOY_SRC source of CI build artifacts
$ASCRIBE_DEPLOY_USER user for connecting to deploy server
$ASCRIBE_DEPLOY_HOST hostname of deploy server
$ASCRIBE_DEPLOY_PATH path to deploy into on the server, should be PATH_ON_SERVER/wp-content/themes/

Server documentation

Site is hosted on an AWS EC2 instance with WordPress running on nginx.

Option Server path
Host ec2-52-57-166-130.eu-central-1.compute.amazonaws.com
WordPress installation /var/www/ascribe-wp/
Active theme /var/www/ascribe-wp/wp-content/themes/ascribe/