Giter VIP home page Giter VIP logo

tali's Introduction

tali v0.0.7

A Vagrant server setup for developing LEMP websites.


About

Tali is an easy to use LEMP development server which uses the latest modern open source technologies available. Tali contains the following key features:

  • Uses Vagrant & Ansible to automatically build a Virtual Machine, without affecting the host computer,
  • Fully supports VirtualBox 5.1 and Parallels 11/12 (Pro/Business),
  • Easy to configure by using the 'tali.yml' file,
  • Built on the latest official Ubuntu LTS version images (14.04),
  • Includes nginx 1.8,
  • Includes PHP 7,
  • Includes MariaDB 10.1.

Note: Tali is designed to only run as a development server on your machine, it does not have the security required for production use.

First Time Install

  • Install VirtualBox 5.1 Or Parallels 11/12 (Pro/Business),
  • Install Vagrant 1.8.5. Download Link,
  • Install Ansible 2. Install instructions,
  • Run in Terminal: vagrant plugin install vagrant-hostmanager vagrant-triggers,
  • If using VirtualBox, run in Terminal: vagrant plugin install vagrant-vbguest,
  • If using Parallels, run in Terminal: vagrant plugin install vagrant-parallels.

On OSX, using Parallels 11/12 is recommended due to its increased speed. However, VirtualBox is free and works well.

Note: Tali supports OSX or Linux. Windows is not supported at this time, but will be in the future.

Usage

Once the first time install has been completed, it is an easy process to set up a website.

Project Setup

Note: An internet connection is required for downloading the various files required.

  • Download the latest release and extract to a directory,
  • Adjust the variables in provision/tali.yml to suit your preferences,
  • Put your website files into the www folder,
  • In project folder, run in Terminal: vagrant up,
  • Wait for the server to build, you may need to enter your host system password.

Accessing the Virtual Machine using SSH

Vagrant manages the SSH authentication process so all you need to do is run vagrant ssh in the project folder to access the Virtual Machine.

Using MariaDB

MariaDB is a drop in open source replacement for MySQL, all mySQL commands work identically and for day to day operation, there is no difference in using MariaDB.

You can either directly log into MariaDB by using SSH or by using software like 'Sequel Pro'.

To login using SSH:

  • vagrant ssh,
  • mysql -u [username] -p. Default username is 'tali',
  • Enter your password from tali.yml when prompted. Default password is 'tali'.

To login using external software:

These instructions are based on Sequel Pro for OSX. When creating a new connection:

  • Select SSH,
  • MySQL host: 127.0.0.1,
  • Username: [username]. Default username is 'tali',
  • Password: [password]. Default password is 'tali',
  • Port: leave blank, (3306),
  • SSH Host: [hostname], Default hostname is 'tali' or 'tali.dev',
  • SSH User: vagrant,
  • SSH Password: vagrant.

Adding PHP extensions

If extra PHP modules are required e.g. GD, you can add them to the tali.yml file, under the PHP extensions variable. Make sure you add the PHP 7 version of each extension e.g php7.0-gd. You can then install the extensions by running vagrant provision in the project folder.

If you log into the Virtual Machine, you can run the following command to find available PHP 7 extensions:

sudo apt-cache search php7-*

Known Issues

  • Windows isn't supported at this time. #10

Credit

  • StackOverflow - For checking what host operating system is running,
  • Phansible - For server language and timezone example.

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.