-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using our new db script, updating docs and tasks to use (#237)
* using our new db script, updating docs and tasks to use * now that wp env is checked in, add to deploy exclude * minor spacing
- Loading branch information
Showing
12 changed files
with
227 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# BY DEFAULT THIS FILE WE BE COMMITTED TO SOURCE CONTROL | ||
# IF YOU WANT TO STORE SENSITIVE DATA, THEN BE SURE AND GITIGNORE FIRST | ||
|
||
# This environment variable is automatically read by Docker and sets | ||
# the project name which is useful when starting new projects based | ||
# on this template. We also use this variable to set the wordpress database | ||
# name in docker-compose.yml and _build/db.sh | ||
|
||
# Should match your docker project name locally | ||
COMPOSE_PROJECT_NAME=bubsnext | ||
|
||
# For WP Engine, the following are used to connect via SSH for deployment | ||
# and DB exporting | ||
|
||
# WPE environment names | ||
COMPOSE_WPE_PRODUCTION=bubsnext | ||
COMPOSE_WPE_STAGING=bubsnexts | ||
COMPOSE_WPE_DEVELOPMENT=bubsnextd | ||
|
||
# These are used for the forced deploys to WPE | ||
GIT_EMAIL="[email protected]" | ||
GIT_NAME="Bubs Deploy" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,2 @@ | ||
# BUBS - A Wordpress Development Environment | ||
|
||
Bubs is Patronage's open-source Wordpress development environment. | ||
|
||
## Getting Started (Docker) | ||
|
||
### Prerequisites | ||
|
||
You should have the following installed and ready in your development environment: | ||
|
||
- `composer` | ||
- `Node.js` | ||
- `nvm` | ||
- `Yarn Package Manager` | ||
- `Sequel Ace` or a SQL GUI to import site database | ||
|
||
### 1. Install Docker | ||
|
||
Install Docker on your computer. [Here's a link to the Desktop Installer](https://www.docker.com/products/docker-desktop). | ||
|
||
### 2. Checkout this repo and prepare local dependencies | ||
|
||
From the /wordpress directory, run the following in your terminal: | ||
|
||
- `composer install` | ||
- `yarn` | ||
|
||
### 3. Start Docker and development environment | ||
|
||
From the /wordpress directory, run the following in your terminal: | ||
|
||
- `docker-compose up` | ||
|
||
### 4. Get Started | ||
|
||
- Open a browser tab to (http://localhost:8000/wp-login.php)[http://localhost:8000/wp-login.php]. | ||
|
||
### 5. Wrapping up development | ||
|
||
- Open Docker Desktop, and click the "stop" button to turn off Docker and make your computer a little faster and less warm: | ||
|
||
![image](https://user-images.githubusercontent.com/525011/77448037-c5573380-6dc6-11ea-8bdd-e9d4025d671d.png) | ||
|
||
### 6. Updating SQL database with newer SQL | ||
|
||
First save your new DB file (.sql, .zip, or .gz) to the `_data` folder. to check the option to drop tables. Then run `yarn db` to import. | ||
|
||
Alternatively, you can use Sequel Pro or another client and import manually. | ||
|
||
To connect from Sequel Pro to explore the database, use the following settings: | ||
|
||
Host: `127.0.0.1` | ||
User: `root` | ||
Pass: `somewordpress` | ||
Port: `3307` | ||
|
||
Docker is configured to persist the database, and each project will use it's own DB name. | ||
|
||
### Deploying | ||
|
||
The `_build` folder has our deploy scripts: | ||
|
||
- to manually deploy to staging from your current branch, run `./_build/deploy.sh staging` | ||
- to manually deploy to production from your current branch, run `./_build/deploy.sh production` | ||
|
||
### Based on Bubs | ||
|
||
This project is based on [Bubs](https://github.com/patronage/bubs-next/) by [Patronage](http://www.patronage.org/). | ||
See these docs for instructions on getting WordPress running locally: | ||
https://github.com/patronage/bubs-next/blob/main/docs/wordpress.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
4b4549c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
bubs-next – ./
bubs-next-patronage.vercel.app
bubs.patronage.org
bubs-next-git-main-patronage.vercel.app
bubs-next.vercel.app