Skip to content

A dev-ops toolkit, that enables you to create new development environments on the fly, and hook up Continuous Deployment/ Integration processes easily.

Notifications You must be signed in to change notification settings

yiendos/my-sites-ide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot

my-sites-ide

my-sites-ide is designed to be an easy way to spin up new php development environments on the fly:

composer global require yiendos/my-sites-ide

Create new play areas, or you can integrate the IDE into existing projects. Simply navigate to the folder of your choice and run:

mysites setup

Followed by:

[project-name] spark

To launch your new play area... See Your project path is important for further details.


Prerequisites

Here is the list of prerequisites for your host system:

  • Docker
  • php
  • composer

Initial setup

Now you are going to need to add the global ~./composer/vendor/bin to your path if you haven't already done this.

To do this temporarily for the session of your terminal screen:

export PATH=$PATH:~/.composer/vendor/bin

For more permanent solutions please see Initial setup

Apple M1/ ARM64 chip support

Note if you want to use this on Arm64 chips, we need to handle mysql differently. Currently, only mysql:8.0 is supported:

mysites setup -f docker-compose-arm.yml

Controlling your my-sites-ide

We've made working with your my-sites-ide as easy as possible, as part of the mysites setup process we also created these commands under the project namespace.

So once again if your site is hosted at new-site, then your new terminal commands will be available under the new-site namespace:

new-site 

Console Tool

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  douse    Temporarily pause your sites
  export   Export a database(s)
  help     Displays help for a command
  list     Lists commands
  panic    Kindle won't launch? This is our troubleshooting command
  restart  Made changes locally? Restart the corresponding docker container
  setup    Create the initial mysites  configuration file
  spark    Fire up your mysites IDE
  status   See the status of mysites containers
joomla
  joomla:create     Create a Joomla site
  joomla:delete     Delet a Joomla site
  joomla:vhost      Creates a new Apache2 and/or Nginx virtual host
wordpress
  wordpress:create  Create a WordPress site
  wordpress:delete  Nuke an existing site
  wordpress:vhost   Creates a new Apache2 and/or Nginx virtual host
xdebug
  xdebug:status     Enable or disable xdebug support

Welcome to your new play area

Database available at: -H 127.0.0.1 - P 3306 root:root

We hope you feel at home!

Debugging your project with xdebug

xdebug is an essential tool for really getting to heart of your web applications. So of course xdebug comes as standard. For more information about using xdebug and my-sites-ide: https://github.com/yiendos/my-sites-ide/wiki/x-debug'ging-with-my-sites-ide

Continuous Deployment as Standard

my-sites-ide came from 8 years working with deployment processes (Jenkins, Travis, github actions) and from this the IDE came into being. So going full circle we've included a barebones github actions integration for you.

You'll see that it's easy to spark your IDE locally, and without even lifting a finger you have github actions CD support as well!

About

A dev-ops toolkit, that enables you to create new development environments on the fly, and hook up Continuous Deployment/ Integration processes easily.

Resources

Stars

Watchers

Forks

Packages

No packages published