Code Monkey home page Code Monkey logo

acraft's Introduction

every time i wanted to create new project when using apache as my server i had to do all things manually like creating site folder , editing apache virtual host config and hosts file and then restart apache service , acraft will do this for you and save time.

Acraft

create apache site (virtual host) with command line
help command:

$ Acraft -h

install

$ npm i acraft

then link the package for shell to use with npm link(you may need to use sudo):

$ npm link acraft

example

$ sudo acraft --folder-name mysite --url mysite.local

options

hint: [value] is optional , is required

Options:
  -f, --folder-name <value>   site folder name
  -u, --url <value>           vhost url (example.local , test.com and etc ...)
  -c, --change-hosts [value]  change the hosts path (you can change it in .env)
  -p, --http-path [value]     www path to create folder (end with slash / or backslash \ ex : home/www/)
  -f, --vhost-path [value]    path of apache 2 virtual host config file
  -h, --help                  display help for command

you can change default http path , vhost path and hosts file in .env file

fixes

1.0.2 fix env path when using npm link

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.