Sha256: 9d2a149e6038d034300d3b20b8c3c0098e2fc6fd938a236a43a99309ab04771b

Contents?: true

Size: 1.9 KB

Versions: 2

Compression:

Stored size: 1.9 KB

Contents

= SmartMachine

Git push should deploy.

SmartMachine is a full-stack deployment framework for rails optimized for admin programmer happiness and peaceful administration. It encourages natural simplicity by favoring convention over configuration.

Deploy your Rails apps to your own server with - git push production master


== How it Works

After you run the below commands, you get.
1. Setup of basic best practices of setting up and securing a VPS server.
2. Setup and installation of Docker.
3. Setup and installation of docker based Mysql, Solr, Nginx, App Prereceiver.
4. Deployment of your Rails apps to your own server with - git push production master


== Setup a New Machine - Ubuntu 18.04 LTS

1. Getting Started with Linode:

    https://www.linode.com/docs/getting-started/

2. How to Secure Your Server:

    https://www.linode.com/docs/security/securing-your-server/


== Install SmartMachine

1. Install Ruby:

    $ sudo apt-get install ruby-full

2. Add gem executables to PATH (remember to check ruby version in the path):

    $ echo 'export PATH="$PATH:$HOME/.gem/ruby/2.5.0/bin"' >> ~/.bashrc && source ~/.bashrc

3. Install smartmachine for current user:

    $ gem install smartmachine --user-install

4. Initialize smartmachine:

    $ smartmachine init


== TODO - Setup Machine
1. Getting Started and Securing your Server:

    $ smartmachine machine install


== Install Docker

1. Run docker install command:

    $ smartmachine docker install

2. Add UFW rules for Docker as specified at the end of installation.


== Starting Grids as per Choice

1. Start mysql grid:

    $ smartmachine grids mysql up

2. Start solr grid:

    $ smartmachine grids solr up

3. Start nginx grid:

    $ smartmachine grids nginx up

4. Start prereceiver grid:

    $ smartmachine grids prereceiver up


== TODO - Creating New App

1. Creating a new bare app on the server:

    $ smartmachine apps create <USERNAME> <APPNAME>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
smartmachine-0.8.0 README.rdoc
smartmachine-0.7.0 README.rdoc