Skip to content

plumduffer/ddev-sitehost-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Installation (or run anytime to get latest version)

test -d ~/.ddev/commands/host && (cd ~/.ddev/commands/host && curl https://raw.githubusercontent.com/plumduffer/DDEV-Sitehost-Command/main/sitehost > sitehost && chmod +x sitehost)

Run ddev poweroff after install.

How to use

Create a .env.sitehost in your DDEV app root (in the same directory as the .ddev directory) with the following environment variables set:

SITEHOST_SSH_IP=
SITEHOST_SSH_USER=
SITEHOST_SSH_PASSWORD=
SITEHOST_DB_NAME=
SITEHOST_DB_USER=
SITEHOST_DB_PASSWORD=

You then have access to use the following commands:

  • ddev sitehost db (clones the db from production and imports it into your DDEV)
  • ddev sitehost assets (clones the ignored files from production's public folder into your DDEV public folder)
  • ddev sitehost ssh (simply starts an ssh session on the site)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages