Git Product home page Git Product logo

vagrant-centos7-php56-mariadb-nginx-node's Introduction

CentOS 7 developer environment

Ambiente completo para desenvolvimento em máquina virtual por meio do Vagrant.

Funcionalidades

Prove ambiente de desenvolvimento em CentOS 7 com as seguintes aplicações:

  • PHP-FPM 5.6.x
  • NodeJS e NPM
    • gulp
    • bower
  • Nginx
  • MariaDB
  • GIT
  • vim

Para um maior desempenho a box do Vagrant e pacotes instalados durante o provisionamento são armazenados em cache.

Requisitos

  • Virtual Box 5 ou maior
  • Vagrant 1.7.4 ou maior
  • Plugins do vagrant:
  • vagrant-vbguest
  • vagrant-env

Exemplo para instalação vagrant e suas dependências no Ubuntu:

$ sudo apt-get install vagrant
$ vagrant plugin install vagrant-vbguest
$ vagrant plugin install vagrant-env
$ vagrant plugin install vagrant-cachier

Utilização

Copiar o arquivo .env.example para .env e alterar as variáveis de ambiente conforme necessidade.

Variável Descrição
NGINX_HOSTS_CONF Díretório que pussui arquivos de configuração de virtualhosts(sites) do nginx
PHP_FMP_POLL Díretório que pussui arquivos de configuração de pool de sites do PHP-FPM
MARIA_DB_USER Usuário padrão que deverá ser criado no MariaDB(não utilizar o root)
MARIA_DB_PASSWD Senha do usuário do MariaDB
WWW_DATA Document root onde estão os arquivos dos sites

Importante: o arquivo .env.example não deve ser editado.

Comandos básicos do Vagrant (executar no diretório onde está localizado o arquivo Vagrantfile):

$ vagrant up        # provisiona a VM
$ vagrant ssh       # acessa o terminal da VM por ssh
<Ctrl> + d ou exit  # abandona o terminal
$ vagrant reload    # reinicia a VM e carega novas configurações
$ vagrant suspend   # suspende a VM e mantém o estado
$ vagrant resume    # retoma uma VM suspensa
$ vagrant halt      # desliga a VM e mantem o estado
$ vagrant destroy   # elimina a VM (irreversível)

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.