Giter Site home page Giter Site logo

smug's Introduction

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

smug's People

Contributors

cristiancmello avatar john-aws avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

smug's Issues

Fails --prepare --laravel-all

Running ./smug --prepare --laravel-all on Cloud9 Ubuntu fails as follows:

...
sudo: phpmyadmin-ctl: command not found
Downloading https://nodejs.org/dist/v8.12.0/node-v8.12.0-linux-x64.tar.xz...
######################################################################################################################################################################################################################################################### 100.0%
Now using node v8.12.0 (npm v6.4.1)
Now using node v8.12.0 (npm v6.4.1)
default -> 8.12.0 (-> v8.12.0)
chown: cannot access '/home/ubuntu/.composer': No such file or directory
sudo: composer: command not found

I presume that the script should either install phpmyadmin and composer or it should document that the user (or the environment) is responsible for pre-installing these.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.