<commit_before># LAMP Deployment Tool #

Automatically Deploy LAMP-Based Web Services

## Getting Started ##

You can install it by executing the following command:

```bash
git clone https://github.com/yuwen41200/lamp-deploy.git
sudo cp lamp-deploy/dep.jar /usr/local/bin/
echo "alias dep='java -jar /usr/local/bin/dep.jar'" >> ~/.bashrc
source ~/.bashrc
```

## Usage ##

1. Switch to your project root directory by `cd /path/to/my/proj/`.

2. Run `dep init` to setup a new configuration.

    * If directory `.git` does not exists, print an error message `INVALID_GIT_REPOSITORY`.
    * Prompt you to input the username, password, default branch for your git repository.
    * Prompt you to input the username, password, IP address for your production server.
    * Prompt you to input the project root path on your production server.
    * Store these settings into `.depcfg` and add this file to `.gitignore`.

3. Run `dep` to deploy your project.

    * If file `.depcfg` does not exists, print an error message `DEP_NOT_CONFIGURED`.
    * Add `.depcfg` to `.gitignore` if it has not been added, then execute `git add --all`.
    * Prompt you to fill in the commit message, then execute `git commit -m "MY_CMT_MSG"`.
    * Execute `git push -u origin YOUR_BRANCH` and fill in the username and password for you.
    * Add an `.htaccess` file to the production server to deny access temporarily.
    * Remove all files in the project root directory on the production server.
    * Use `scp` to copy all local files to the production server.
    * Load SQL queries in `runonce.sql` on the production server.
    * Remove the `.htaccess` file on the production server.

## Requirement ##

Your development environment should have:

+ Unix-like System
+ SSH Client
+ Git Client
+ Java Runtime Environment

Your production server should have:

+ Unix-like System
+ Apache Server
+ MySQL Server
+ PHP Interpreter
+ SSH Server

## License ##

The MIT License<commit_msg>Fix errors in README.<commit_after># LAMP Deployment Tool #

Automatically Deploy LAMP-Based Web Services

## Getting Started ##

You can install it by executing the following command:

```bash
wget https://github.com/yuwen41200/lamp-deploy/raw/master/out/production/lamp-deploy/dep.jar
sudo mv dep.jar /usr/local/bin/
echo "alias dep='java -jar /usr/local/bin/dep.jar'" >> ~/.bashrc
source ~/.bashrc
```

## Usage ##

1. Switch to your project root directory by `cd /path/to/my/proj/`.

2. Run `dep init` to setup a new configuration.

    * If directory `.git` does not exists, print an error message `INVALID_GIT_REPOSITORY`.
    * Prompt you to input the username, password, default branch for your git repository.
    * Prompt you to input the username, password, IP address for your production server.
    * Prompt you to input the project root path on your production server.
    * Store these settings into `.depcfg` and add this file to `.gitignore`.

3. Run `dep` to deploy your project.

    * If file `.depcfg` does not exists, print an error message `DEP_NOT_CONFIGURED`.
    * Add `.depcfg` to `.gitignore` if it has not been added, then execute `git add --all`.
    * Prompt you to fill in the commit message, then execute `git commit -m "MY_CMT_MSG"`.
    * Execute `git push -u origin MY_BRANCH` and fill in the username and password for you.
    * Add an `.htaccess` file to the production server to deny access temporarily.
    * Remove all files in the project root directory on the production server.
    * Use `scp` to copy all local files to the production server.
    * Load SQL queries in `runonce.sql` on the production server.
    * Remove the `.htaccess` file on the production server.

## Requirement ##

Your development environment should have:

+ Unix-like System
+ SSH Client
+ Git Client
+ Java Runtime Environment

Your production server should have:

+ Unix-like System
+ Apache Server
+ MySQL Server
+ PHP Interpreter, Python Interpreter, Perl Interpreter, etc.
+ SSH Server

## License ##

The MIT License
{'fraction_non_alphanumeric': 0.08925454998753428, 'fraction_numerical': 0.0039890301670406384, 'mean_word_length': 3.533333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3558019', 'n_tokens_mistral': 1201, 'n_tokens_neox': 1151, 'n_words': 534}