Coder Social home page Coder Social logo

localserver's Introduction

Make it very easy to setup a complete development stack (MySQL, PHP, NodeJS, etc) in a matter of minutes.

Requirements

Usage

Download Vagrantfile to project_name_dir and up server

$ cd project_name_dir
$ wget http://ilyar.github.io/localserver/Vagrantfile
$ vagrant up

The project is available at http://project_name_dir.local/

Note:

$ vagrant suspend # suspends the machine
$ vagrant halt # stops the vagrant machine
$ vagrant destroy -f # stops and deletes all traces of the vagrant machine

And like any other vagrant file you have SSH access with:

$ vagrant ssh

also can run once command:

$ ssh vagrant@localserver composer update

Docs for setup IDE

Technical Details

  • Ubuntu 14.04 LTS 32-bit (for use 64-bit set VM_ARCH=64)
  • Apache 2
  • MySQL 5.5
  • PHP 5.5 (with modules: apc, memcached, cli, curl, gd, imap, mysql, mcrypt, sqlite, xdebug, xsl, pear, intl, tidy, readline) and tools:
  • phpmyadmin http://localserver/phpmyadmin/
  • composer — Dependency Manager for PHP
  • composer-asset-plugin — NPM/Bower Dependency Manager for Composer
  • php-cs-fixer — PHP Coding Standards Fixer
  • NodeJs (node, npm, bower)

We are using the base Ubuntu 14.04 box from Vagrant. If you don't already have it downloaded the Vagrantfile has been configured to do it for you. This only has to be done once for each account on your host computer.

The web root is located in the project directory and you can install your files there.

Default credentials

MySQL

Externally the MySQL server is available at localserver:3306, and when running on the VM it is available as a socket or at port 3306 as usual. Username: root Password: local

Project settings for customize in Vagrantfile

custom_project_name  = false # default from project name folder
custom_project_host  = false # default `project_name.local`
custom_project_alias = false # default `www.project_name.local`

custom_ip_address    = false # default "10.0.0.10" IPv4 private network range
custom_default_host  = false # default "localserver"

custom_vm_arch       = false # default 32  or VM_ARCH
custom_vm_memory     = false # default 512 or VM_MEMORY
custom_vm_cores      = false # default 1   or VM_CORES

localserver's People

Contributors

ilyar avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

emomteam leko-git

localserver's Issues

add settings for customize

# Project settings for customize

custom_project_name  = false # default from project name folder
custom_project_host  = false # default `project_name.local`
custom_project_alias = false # default `www.project_name.local`

custom_ip_address    = false # default "10.10.10.10" IP Address IPv4 private network range
custom_default_host  = false # default "server.local"

custom_vm_arch       = false # default 32  or VM_ARCH
custom_vm_memory     = false # default 512 or VM_MEMORY
custom_vm_cores      = false # default 1   or VM_CORES

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.