Skip to content

Commit 83f20d1

Browse files
committed
Add inital web dashboard integration command
0 parents  commit 83f20d1

8 files changed

Lines changed: 586 additions & 0 deletions

File tree

.distignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.DS_Store
2+
.git
3+
.gitignore
4+
.gitlab-ci.yml
5+
.editorconfig
6+
.travis.yml
7+
behat.yml
8+
circle.yml
9+
bin/
10+
features/
11+
utils/
12+
*.zip
13+
*.tar.gz
14+
*.swp
15+
*.txt
16+
*.log

.editorconfig

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# WordPress Coding Standards
5+
# https://make.wordpress.org/core/handbook/coding-standards/
6+
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = tab
15+
16+
[{.jshintrc,*.json,*.yml,*.feature}]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[{*.txt,wp-config-sample.php}]
21+
end_of_line = crlf
22+
23+
[composer.json]
24+
indent_style = space
25+
indent_size = 4

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.DS_Store
2+
wp-cli.local.yml
3+
node_modules/
4+
vendor/
5+
*.zip
6+
*.tar.gz
7+
*.swp
8+
*.txt
9+
*.log
10+
composer.lock
11+
.idea
12+
*.db

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# easyengine/dash-command
2+
3+
This package provides the `ee dash` command, allowing you to integrate your EasyEngine server and sites with the web dashboard.
4+
5+
## Description
6+
7+
The `ee dash` command facilitates the connection between your server and web dashboard. It securely sends server and site-specific data to your web dashboard organization, enabling you to manage and monitor your EasyEngine sites from a centralized dashboard.
8+
9+
The primary command is `ee dash init`, which performs the following actions:
10+
- Verifies server compatibility (Ubuntu 22.04 or later).
11+
- Adds the web dashboard SSH key for secure communication.
12+
- Registers the server with your specified web dashboard organization.
13+
- Syncs all existing EasyEngine sites to web dashboard, sending relevant details like PHP version, SSL status, and more.
14+
15+
## Installation
16+
17+
This command is bundled with EasyEngine. If you have a standard EasyEngine installation, no additional installation steps are required.
18+
19+
## Usage
20+
21+
To integrate your server with web dashboard, run the following command:
22+
23+
```bash
24+
ee dash init --api=<your-api-key> --org=<your-org-name>
25+
```
26+
27+
This step is no longer be necessary manually. Once you register your server, the web dashboard will automatically fire this command to sync your sites.
28+
29+
## Contributing
30+
31+
We appreciate you taking the initiative to contribute to this project.
32+
33+
Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

composer.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "easyengine/dash-command",
3+
"description": "Command to manage dash",
4+
"type": "ee-cli-package",
5+
"homepage": "https://github.com/easyengine/dash-command",
6+
"license": "MIT",
7+
"authors": [],
8+
"minimum-stability": "dev",
9+
"prefer-stable": true,
10+
"autoload": {
11+
"psr-4": {
12+
"": "src/"
13+
},
14+
"files": [ "dash-command.php" ]
15+
},
16+
"extra": {
17+
"branch-alias": {
18+
"dev-master": "1.x-dev"
19+
},
20+
"bundled": true,
21+
"commands": [
22+
"dash",
23+
"dash init"
24+
]
25+
}
26+
}

dash-command.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
if ( ! class_exists( 'EE' ) ) {
4+
return;
5+
}
6+
7+
$autoload = dirname( __FILE__ ) . '/vendor/autoload.php';
8+
if ( file_exists( $autoload ) ) {
9+
require_once $autoload;
10+
}
11+
12+
EE::add_command( 'dash', 'Dash_Command' );

ee.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require:
2+
- dash-command.php

0 commit comments

Comments
 (0)