Skip to content
stormcat24 edited this page Oct 23, 2014 · 3 revisions

aeromock-brew

Aeromock uses the package manager called aeromock-brew like brew to install, and update version.

Firstly, clone aeromock-brew everywhere by using Git.

$ git clone [email protected]:CyberAgent/aeromock-brew.git

aeromock-brew is a gradle plugin, then runs this by gradlew (Gradle Wrapper) command. In Windows, execute gradlew.bat.

use command

use is command to install and update, change version. If you want use latest version, execute with latest argument.

$ cd /path-to-path/aeromock-brew
$ ./gradlew use -PaeromockVersion=latest

When specify version.

$ ./gradlew use -PaeromockVersion=0.1.4

verions command

Show available versions in currently.

$ ./gradlew versions
Released version in repository, as follows.
 0.1.4
 0.1.3
 0.1.2
 0.1.1
 0.1.0

BUILD SUCCESSFUL

list command

Show already installed versions of Aeromock in local machine.

$ ./gradlew list
installed versions, as follows.
 0.1.0
 0.1.1
 0.1.2
 0.1.3

BUILD SUCCESSFUL

Set PATH (Environment Variable)

Installed Aeromock is located at ~/.aeromock/applications/current. Write configuration at .bashrc or .zshrc. to set this path as environment variable PATH.

# Aeromock
AEROMOCK_HOME=~/.aeromock/applications/current
export PATH=$PATH:$AEROMOCK_HOME

Setting ~/.aeromock/config.yaml

For personal settings of Aeromock, prepare ~/.aeromock/config.yaml. Set path of project.yaml at config.yaml.

project_config_path: ~/path-to-path/aeromock/tutorial/freemarker/project.yaml

Start up

Standard

Start up Aeromock by using aeromock command. If you could see splash window, start-up is completed. (Default listen port is 3183)

splash

Specify listening port

Run aeromock with -p option to change listening port.

$ aeromock -p 8080
Change location of config.yaml

Run aeromock with -c option to change location of config.yaml.

$ aeromock -c ~/path-to-path/config.yaml

Stop

To stop Aeromock, send signal Ctrl+C.

About reboot

Aeromock is no need to reboot except when version up, and OutOfMemoryError, if changed ~/.aeromock/config.yaml or project.yaml, other codes.

Clone this wiki locally