Giter Site home page Giter Site logo

steveng-jellyfish / bamtech-wordpress-simply-static Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 146.89 MB

Dockerfile 0.01% VCL 0.03% Shell 0.08% Python 0.07% HTML 1.02% JavaScript 20.37% CSS 3.84% PHP 74.44% Hack 0.01% Modelica 0.05% Java 0.07% XSLT 0.02%

bamtech-wordpress-simply-static's Introduction

Bamtech Wordpress Dockerized

alt text

Steps to set Docker CE on your Mac:

Set the host.env file in the root directory:

WP_SITEURL=http://bamtech.local/
WP_HOME=http://bamtech.local/
WP_CONTENT_URL=http://bamtech.local/wp-content

Start the containers:

docker-compose up -d

Detailed information here: https://jellyfish.atlassian.net/wiki/spaces/WIKI/pages/169213981/Set+Docker+CE+on+your+MAC

On 1st time deployment will take a couple of minutes as it will need to build the images and install the required wordpress plugins.

Browser to http://localhost to view the site, if you see a 502 Gateway error means the deployment still executing, wait few minutes till is completed.

Bamtech wordpress dockerized

Steps to setup the project on local docker:

set the host.env file:

cp host.env.default host.env

Modify the host.env to from project.local to localhost

Start the containers:

docker-compose up -d

1st time this will take a couple of minutes as it will need to build the images and install the required wordpress plugins.

Browser to http://localhost to view the site

Help

WP CLI

Searching for Plugins

./run.py plugin search PLUGIN_NAME

When you have found the plugin, add the slug to the "PLUGINS" array in:

./wordpress/wordpress-entrypoint.sh

Other useful commands

Create a database dump:

docker exec [image-name] sh -c 'exec mysqldump -uwordpress -p"wordpress" wordpress' > wordpress_dump.sql

Add a sql dump to database:

docker exec -i [image-name] -uwordpress -p"wordpress" wordpress < ~/wordpress_dump.sql 

Browse image:

docker exec -ti [image-name] bash

Copy files:

docker cp wp-stateless/ [image-name]:/var/www/html/wp-content/plugins/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.