Skip to content

Developer's daily assistance app. Server control, project backup with a tiny set of CLI commands.

Notifications You must be signed in to change notification settings

Dziamid-Harbatsevich/clike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLIke FEATURES

  • Server Management
  • Git Add, Commit and Push (configurable from CLI)
  • Tar Backup and Copy to Local Storage

COMPATABILITY

Developed and tested on Ubuntu 20.04(wsl) / PHP 8.0.5 / Nginx 1.18.0 / MySQL 8.0.23

Requirements:

  • PHP ^8.0

INSTALLATION

Clone app

In some <app_folder> defined by you. Just check if you have an appropriate rights to use this folder.

Create an alias for "clike" command in ~/.bash_aliases:

alias clike='php ~/\<app_folder\>/clike'

Set PHP version running

Check files: "webserver/devserv", "webserver/devserv-min"

Server Management

Commands

clike server:(start|stop|reload... "common parameters for Nginx, PHP, Mysql according to documentation") [--min] --min control servers accept mysql (Nginx+PHP only)

Examples:

  • Start all servers
clike server:start
  • Reload configurations for all servers except mysql
clike server:reload [--min]

Git Control

Configure connection to the GitHub repository in .env file. "GIT_HOST" parameter equals a host + full path to the git repository root. If you wish to get total automatization than set "GIT_AUTOPASS" to true and set password. Please, consider notification below as the Git credentials send via URL-HTTPS.

NOTE: The passwords should be saved encoded according to ASCII Codes Table (% + Hex code of the character, "%26" = "&"). ASCII Table

Default master branch named as "master". You can choose your own branch and gitfile format ("origin" is conventional) while pushing new commits.

Examples:

  • Commit changes and push
clike git:commit [-m "Commit text.."]
  • Set CLIke Git Control to use credentials for auto-authentication
clike git:config --autopass
  • Reject CLIke Git Control to use credentials for auto-authentication
clike git:config --autopass (true|false)

Credits

  • All Contributors

License

The MIT License (MIT). Please see License File for more information.

About

Developer's daily assistance app. Server control, project backup with a tiny set of CLI commands.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published