2017 © Pedro Peláez
 

library skeleton-project

Skeleton project for WordPress applications

image

tivwp/skeleton-project

Skeleton project for WordPress applications

  • Monday, January 16, 2017
  • by tivnet
  • Repository
  • 1 Watchers
  • 1 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

skeleton-project

FOR TIV.NET PROJECTS ONLY, (*1)

Usage Example

cd /var/www
composer create-project tivwp/skeleton-project my-site.com

Composer will install the project and then will run the configuration script:, (*2)

> tivwp_composer::post_create_project
Please enter the configuration values:
DB_NAME [my-site] :
DB_USER [my-site] (max. 16 chars) :
DB_PASSWORD :mysecretpassword
Domain name [my-site.com] :
Array
(
    [{{DB_NAME}}] => my-site
    [{{DB_USER}}] => my-site
    [{{DB_PASSWORD}}] => mysecretpassword
    [{{SITE_NAME}}] => my-site.com
    [{{PROJECT_ROOT}}] => /var/www/my-site.com
)

OK [Y/n]?
Processing files:
internal/dist/dbcreate.sql => internal/dbcreate.sql
internal/dist/wp-config.php => public/wp-config.php
internal/dist/httpd.conf => apache/httpd.conf

Go to the project folder:, (*3)

cd /var/www/my-site.com

Run mysql to create the database and the user:, (*4)

mysql -u root -p < internal/dbcreate.sql
Enter password: **********

Edit the public/wp-config.php file and replace the "Authentication Unique Keys and Salts" section with the content of https://api.wordpress.org/secret-key/1.1/salt/., (*5)

Edit the .gitignore file in the project root and uncomment the line:, (*6)

/public/tivwp-local-config.inc.php

If on development server, edit the /etc/hosts file and put the following line there:, (*7)

127.0.0.1 my-site.com www.my-site.com

Open the site in a browser to let WordPress set up the database tables:, (*8)

https://my-site.com/wp/wp-admin/install.php, (*9)

Note that if you did not install the real SSL certificate, your browser will issue a warning., (*10)

Complete the WordPress installation, login to the admin and then go to the General Settings:, (*11)

https://my-site.com/wp/wp-admin/options-general.php, (*12)

and change the Site Address (URL) so that it does not end with wp:, (*13)

https://my-site.com

Keep the above part, WordPress Address (URL) as-is., (*14)

Alternatively, if you have WP-CLI installed, you can use it:, (*15)

wp option update home 'https://my-site.com'

Clean-up

Edit the composer.json file:, (*16)

  • Change these lines:
"name": "tivwp/skeleton-project",
"description": "Skeleton project for WordPress applications",
  • Remove these lines:
"scripts": {
    "post-create-project-cmd": [
      "tivwp_composer::post_create_project"
    ]
},
"autoload": {
    "classmap": [
      "internal"
    ]
},
  • Remove the internal folder.
  • Remove or modify README.md file in the project root folder.

That's All

The site is ready. Make a Git repo for it, commit and push., (*17)

Author

Gregory Karpinsky TIV.NET INC., (*18)

The Versions

16/01 2017

dev-master

9999999-dev

Skeleton project for WordPress applications

  Sources   Download

GPL-3.0

The Requires

 

16/01 2017

0.0.11

0.0.11.0

Skeleton project for WordPress applications

  Sources   Download

GPL-3.0

The Requires

 

03/11 2016

0.0.10

0.0.10.0

Skeleton project for WordPress applications

  Sources   Download

GPL-3.0

The Requires

 

21/10 2016

0.0.8

0.0.8.0

Skeleton project for WordPress applications

  Sources   Download

GPL-3.0

The Requires

 

21/10 2016

0.0.7

0.0.7.0

Skeleton project for WordPress applications

  Sources   Download

GPL-3.0

The Requires