For your own wp-skeleton please head over to markjaquith's great WordPress-Skeleton. This is just a forkless Customization.
- WordPress as a Git submodule in
/wp/
- Roots as Git submodule in
/content/roots
- Custom content directory in
/content/
(cleaner, and also because it can't be in/wp/
) wp-config.php
in the root (because it can't be in/wp/
)media
folder lives in/content/media
- working redirection via htaccess for
- theme assets
- wp-admin assets
- local/staging/production environments
- Test Support for wp-stack
-
Ivoke Mittwald setup
- log into Mittwald with admin rights
- switch to Accountverwaltung
- create new account (Kunden anlegen) with
- account description (Accountbeschreibung) my_project_name
- account template (Accountvorlage) 'Ivoke Wordpress'
- plan (Leistungsvorlage) 'wp-base'
- Note: max Password length = 16
- Please save to KeePass
-
the account needs approx. 15 minutes to setup
-
in your account go to databases (Datenbanken) / database users (Datenbankbenutzer) and set the password for the export user
-
Setup local repo
- clone it
git clone git@github.com:ivoke/wp-skeleton.git my_project_name
- cd into
my_project_name
- you will need rake and composer
- Install COMPOSER:
- download
composer
withcurl -sS https://getcomposer.org/installer | php
- needs flag
-d detect_unicode=Off
if related errors appear - install it with
php composer.phar install
- download
- run
rake wp:install
- clone it
-
Configure Vagrant Box
- Run
git clone git@github.com:ivoke/wp-skeleton.git
- Run
cd wp-skeleton
- Run
rake wp:install
(Also requires composer) - Run
vagrant up
- Database Credentials (update env_local.php)
- Name:
skeleton
- User:
skeleton
- Password:
secret
- Name:
- Open
http://192.168.33.10/
in your browser.
- Run
-
configure development env
-
setup a local database my_project_name
-
copy
/env_local.php.sample
->/env_local.php
- add local_db_name
- add local_db_user
- add local_db_password
- add local_db_host (localhost)
- copy salts from
https://api.wordpress.org/secret-key/1.1/salt
- set
$table_prefix
tomy_project_name
+_
. Should readmy_project_name_
now.
-
mount repo to local web server e.g. for xampp:
ln -s repo_path htdocs_path/my_project_name
- enable
Include etc/extra/httpd-vhosts.conf
inxampp_path/etc/httpd.conf
- add vhost to
xampp_path/etc/extra/httpd-vhosts.conf
<VirtualHost *:80> ServerName my_project_name.dev (example) DocumentRoot "htdocs_path/my_project_name" </VirtualHost>
- add subdomain to hosts file
/etc/hosts
127.0.0.1 my_project_name.dev
-
-
configure production env
- copy
/cap/config/config.rb.sample
->/cap/config/config.rb
- add in
:wp :production :db
:host => mittwald_database_hostname
(left hand menu: Datenbanken):user => mittwald_export_user_name
(left hand menu: Datenbanken -> Datenbankbenutzer -> export user):password => mittwald_export_user_password
(If you didnt wait the 15 Minutes, proceed to first paragraph):name => mittwald_database_name
- add in
:wp :production :wp
:host => server_url
(left hand menu: Main Menu, Account Url):table_prefix => table_prefix
(the prefix you are using for the production tables)
- if using a staging server rinse and repeat the steps for
:wp :production
for:wp :staging
- add in
:wp :local
(which is used as development):host => local_db_host (localhost)
:user => local_db_user
:password => local_db_password
:name => local_db_name
- add in
:wp :production :wp
:host => server_url
(the URL of the you are using locally):table_prefix => table_prefix
(the prefix you are using for the development tables)
- add in
- copy
/cap/config/production.rb.sample
->/cap/config/production.rb
- add
role :web "mittwald_account_name@mittwald_account_url"
- account name: click on newly created account (left hand side) -> Account (pXXXXXX)
- account URL: same page as before -> pXXXXXX.mittwaldserver.info
- add
- cd into
my_project_name/cap
and runcap deploy:setup
- run
ssh mittwald_account_name@mittwald_account_url
- cd into
/html/shared/config
- edit htaccess, robots.txt and wp-config using
vim
- cd into
- cd into
my_project_name/cap
and runcap deploy
- copy
-
configure wordpress
- go to mittwald_account_url and install wordpress
- login and activate roots theme
- save all in KeePass
-
initial commit
- log into github
- change to ivoke (https://github.com/organizations/ivoke)
- create new repository -> enter stuff -> create repository
- Follow instructions from Push an existing repository from the command line
git remote add origin https://github.com/ivoke/my_project_name.git
git push -u origin master