Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev-env] Supports extended information table #1096

Merged
merged 3 commits into from
Sep 13, 2022
Merged

Conversation

pschoffer
Copy link
Contributor

Description

We show extended information on --extended switch to vip dev-env info command. This helps users to quickly check how the environment is configured.

Steps to Test

$ npm run build && ./dist/bin/vip-dev-env-info.js  --extended --all

> @automattic/[email protected] build /home/pavel/git/automattic/vip
> babel src -d dist

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Successfully compiled 107 files with Babel (4543ms).
Found 4 environments:


 SLUG              2891                                                                           
 LOCATION          /home/pavel/.local/share/vip/dev-environment/2891                              
 SERVICES          devtools, nginx, php, database, memcached, wordpress, mu-plugins, client-code  
 NGINX URLS        http://2891.vipdev.lndo.site/                                                  
                   https://2891.vipdev.lndo.site/                                                 
 STATUS            DOWN                                                                           
 LOGIN URL         http://2891.vipdev.lndo.site/wp-admin/                                         
 DEFAULT USERNAME  vipgo                                                                          
 DEFAULT PASSWORD  password                                                                       
 DOCUMENTATION     https://docs.wpvip.com/technical-references/vip-local-development-environment/ 
 TITLE             pschoffer-develop.go-vip.net                                                   
 MULTISITE         false                                                                          
 PHP               8.0                                                                            
 WORDPRESS         6.0                                                                            
 MU PLUGINS        [demo-image]                                                                   
 APP CODE          [demo-image]                                                                   
 MEDIA REDIRECT    https://pschoffer-develop.go-vip.net                                           


 SLUG              multisite                                                                                
 LOCATION          /home/pavel/.local/share/vip/dev-environment/multisite                                   
 SERVICES          devtools, nginx, php, database, memcached, phpmyadmin, vip-search, wordpress, mu-plugins 
 NGINX URLS        http://multisite.vipdev.lndo.site/                                                       
                   https://multisite.vipdev.lndo.site/                                                      
                   http://*.multisite.vipdev.lndo.site/                                                     
                   https://*.multisite.vipdev.lndo.site/                                                    
 PHPMYADMIN URLS   http://multisite-pma.vipdev.lndo.site/                                                   
 STATUS            DOWN                                                                                     
 LOGIN URL         http://multisite.vipdev.lndo.site/wp-admin/                                              
 DEFAULT USERNAME  vipgo                                                                                    
 DEFAULT PASSWORD  password                                                                                 
 DOCUMENTATION     https://docs.wpvip.com/technical-references/vip-local-development-environment/           
 TITLE             vip-wordpress-com                                                                        
 MULTISITE         true                                                                                     
 PHP               7.4                                                                                      
 WORDPRESS         6.0                                                                                      
 MU PLUGINS        [demo-image]                                                                             
 APP CODE          /home/pavel/git/automattic/client-code/vip-wordpress-com                                 


 SLUG              test                                                                           
 LOCATION          /home/pavel/.local/share/vip/dev-environment/test                              
 SERVICES          devtools, nginx, php, database, memcached, wordpress, mu-plugins               
 NGINX URLS        http://test.vipdev.lndo.site/                                                  
                   https://test.vipdev.lndo.site/                                                 
 STATUS            DOWN                                                                           
 LOGIN URL         http://test.vipdev.lndo.site/wp-admin/                                         
 DEFAULT USERNAME  vipgo                                                                          
 DEFAULT PASSWORD  password                                                                       
 DOCUMENTATION     https://docs.wpvip.com/technical-references/vip-local-development-environment/ 
 TITLE             VIP Dev                                                                        
 MULTISITE         false                                                                          
 PHP               8.0                                                                            
 WORDPRESS         6.0                                                                            
 MU PLUGINS        [demo-image]                                                                   
 APP CODE          /home/pavel/git/automattic/vip-go-skeleton                                     
 MEDIA REDIRECT    https://example.com                                                            


 SLUG               vip-local                                                                      
 LOCATION           /home/pavel/.local/share/vip/dev-environment/vip-local                         
 SERVICES           devtools, nginx, php, database, memcached, vip-search, statsd, wordpress       
 NGINX URLS         http://vip-local.vipdev.lndo.site/                                             
                    https://vip-local.vipdev.lndo.site/                                            
 DATABASE           127.0.0.1:49155                                                                
 ENTERPRISE SEARCH  http://127.0.0.1:49154                                                         
 STATUS             UP                                                                             
 LOGIN URL          http://vip-local.vipdev.lndo.site/wp-admin/                                    
 DEFAULT USERNAME   vipgo                                                                          
 DEFAULT PASSWORD   password                                                                       
 DOCUMENTATION      https://docs.wpvip.com/technical-references/vip-local-development-environment/ 
 TITLE              VIP Dev                                                                        
 MULTISITE          false                                                                          
 PHP                8.1                                                                            
 WORDPRESS          6.0                                                                            
 MU PLUGINS         /home/pavel/git/automattic/vip-go-mu-plugins                                   
 APP CODE           /home/pavel/git/automattic/vip-go-skeleton           

@yolih
Copy link
Contributor

yolih commented Sep 8, 2022

The added --extended option and the information that is output as a result looks terrific!
This has my approval for general output structure. I'll leave the code review and approval to a more qualified person. :)

Copy link
Contributor

@jesse-greathouse jesse-greathouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@pschoffer pschoffer merged commit 249b9ba into develop Sep 13, 2022
@pschoffer pschoffer deleted the add/extended_info branch September 13, 2022 06:46
@luismulinari luismulinari mentioned this pull request Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants