Skip to content

cristiancmello/smug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

Smug

Smug is a command line utility for Linux operating systems that support the APT package management system (Ubuntu, Debian, and Mint, by default).

It supports the automated installation/update of some software, such as PHP 7.2, PHPMyAdmin, NPM, MongoDB, Node.js and Laravel 5.5 LTS Installer in the Cloud9 workspaces.

Smug was not designed to be installable, for simplicity. Is only a Shell Script.

Clone Smug repository

$ git clone https://github.com/cristiancmello/smug.git

Smug usage

Show help

$ ./smug --help

Prepare Workspace

  • Install/Update PHP 7.2, PHPMyAdmin, Laravel 5.5 LTS Installer (through Composer Package Manager) and NPM:
$ ./smug --prepare --laravel-all
  • Installing individually:

    • Install PHP 7.2 (with php7.2-sqlite3 and php7.2-mysql):
    $ ./smug --prepare --php7.2
    • Install PHPMyAdmin (MySQL connection, by default):
    $ ./smug --prepare --phpmyadmin
    • Install Laravel 5.5 LTS Installer:
    $ ./smug --prepare --laravel-installer
    • Install/Update NPM:
    $ ./smug --prepare --npm
    • Install/Update Node.js 8.11.1 LTS:
    $ ./smug --prepare --node

Project Creation

  • Create Laravel Project (with Cloud9's public index folder path configuration):
$ ./smug --create --laravel-project --public-index-folder <project_name>
  • Create Laravel Project (without Cloud9's public index folder path configuration):
$ ./smug --create --laravel-project <project_name>

Workspace Configuration

  • Configure Cloud9's public index folder path:
$ ./smug --configure --public-index-folder <folder_name>

MongoDB

  • Install MongoDB 2.6.12:
$ ./smug --prepare --mongo
  • Start MongoDB service:
$ ./smug --start mongo
  • Shutdown MongoDB service:
$ ./smug --shutdown mongo