Skip to content

Commit

Permalink
Stand-alone server removed. #7 #9 #RN
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFox committed Aug 3, 2016
1 parent 9fdce87 commit 6d94ef1
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 405 deletions.
24 changes: 0 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,6 @@ The preferred method of installation is via [Packagist](https://packagist.org/pa

composer.phar require "thefox/smtpd=~0.2"

## Stand-alone server

1. Clone project from GitHub.

git clone https://github.com/TheFox/smtpd.git

2. Install dependencies.

make

3. To start a stand-alone server you can type the following command in your shell:

./application.php server -d

To show the usage options use `-h`:

./application.php server -h

You can change the IP and port. Default port is 20025.

./application.php server -a 0.0.0.0 -p 25

**Note:** The stand-alone server is only for testing. If you want to use it for production you need to define a save/deliver function. See example below.

## Usage

See [`example.php`](example.php) file for more information.
Expand Down
15 changes: 0 additions & 15 deletions application.php

This file was deleted.

6 changes: 0 additions & 6 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,3 @@
}

require_once __DIR__.'/vendor/autoload.php';

use Symfony\Component\Filesystem\Filesystem;

$filesystem = new Filesystem();
$filesystem->mkdir('log', 0700);
$filesystem->mkdir('pid', 0700);
10 changes: 3 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@
],
"require": {
"php": ">=5.3",
"zendframework/zend-mail": "~2.3",
"symfony/console": "~2.5",
"symfony/filesystem": "~2.5",
"liip/process-manager": "~1.0",
"phpmailer/phpmailer": "~5.2"
"zendframework/zend-mail": "~2.3"
},
"require-dev": {
"phpunit/phpunit": "~4.1",
"phpmailer/phpmailer": "~5.2",
"thefox/phpcsrs": "~1.0",
"thefox/utilities": "~1.1"
},
Expand All @@ -39,12 +36,11 @@
"scripts": {
"post-install-cmd": [
"echo post-install-cmd",
"chmod a+rx-w,u+rwx application.php",
"php bootstrap.php"
],
"post-update-cmd": [
"echo post-update-cmd",
"php bootstrap.php"
]
}
}
}
154 changes: 0 additions & 154 deletions src/TheFox/Console/Command/BasicCommand.php

This file was deleted.

82 changes: 0 additions & 82 deletions src/TheFox/Console/Command/InfoCommand.php

This file was deleted.

Loading

0 comments on commit 6d94ef1

Please sign in to comment.