Skip to content

A command line interface that will set contents for the default server.ini file for web development using Hack Lang

License

Notifications You must be signed in to change notification settings

mike2151/config-server-ini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config Server.ini

About

Config Server.ini is a CLI used to set the default configuration for the server.ini file for web development with Hack Lang. Web development with Hack Lang uses a file called server.ini for the default settings when you run a web server. Each web development project has different default settings for the server. Therefore, if you want a project's config to be the default, you would have to manually copy over the project's config file and replace server.ini. This project offers a script, config-server-ini, which by default looks in the calling directory for a config.ini file which has the contents that should go in the server.ini file. Then, the contents from config.ini are placed in server.ini, so the next time a server is run by default, the default settings are ready to go.

Installation (Only Supports Linux and MacOS currently)

Download/Clone The Repo And Place In Bin

Download or clone the repo: git clone https://github.com/mike2151/config-server-ini.git

Move the file to bin: cp config-server-ini/bin/config-server-ini /usr/local/bin

Then, you can access the tool by typing: config-server-ini in a command line

Homebrew

brew tap mike2151/tap

brew install config-server-ini

Then, you can access the tool by typing: config-server-ini in a command line

Usage

config-server-ini -help or config-server-ini -h: Displays usage

config-server-ini : looks in the current directory for a config.ini file and places the contents of the file in the server.ini file.

config-server-ini path/to/file : places the contents of the file in the server.ini file.

config-server-ini default : restores the default server.ini file which comes when you first install HHVM and Hack.

About

A command line interface that will set contents for the default server.ini file for web development using Hack Lang

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages