Gatling v1.0.0 Mix.Tasks.Gatling.Upgrade

  • Create a release of the last commit using EXRM
  • Perform a hot upgrade of the currently running application

Summary

Functions

Wrapper function for every action

Executes :before or :after callback function defined in /upgrade

Copy the generated release into the releases directory for the deploying project

Create a directory of the current release in the build path of the project

Compile the application being deployed

Run the mix task mix deps.get in the project being deployed

Create static phoenix files

Generate a release of the deploying project with Distillery

Look look for /rel/config.exs If it doesn’t exist, run mix release.init

Callback implementation for c:Mix.Task.run/1

Leverage Distillery to perform a hot upgrade of the running project

Types

gatling_env :: %Gatling.Env{available_port: term, available_tasks: term, build_dir: term, built_release_path: term, deploy_callback_module: term, deploy_dir: term, deploy_path: term, domains: term, etc_dir: term, etc_path: term, git_hook_path: term, nginx_available_path: term, nginx_dir: term, nginx_enabled_path: term, nginx_template: term, project: term, release_config_path: term, releases: term, script_template: term, upgrade_callback_module: term, upgrade_dir: term, upgrade_path: term, version: term}
project :: binary

Functions

call(env, action)

Specs

call(gatling_env, :before | :after) :: gatling_env

Wrapper function for every action.

Executes the :before_<action> and :after_<action> functions defined in /upgrade.

callback(env, action, type)

Specs

callback(gatling_env, atom, :before | :after) :: gatling_env

Executes :before or :after callback function defined in /upgrade.

copy_release_to_upgrade(env)

Specs

copy_release_to_upgrade(gatling_env) :: gatling_env

Copy the generated release into the releases directory for the deploying project

make_upgrade_dir(env)

Specs

make_upgrade_dir(gatling_env) :: gatling_env

Create a directory of the current release in the build path of the project

mix_compile(env)

Specs

mix_compile(gatling_env) :: gatling_env

Compile the application being deployed

mix_deps_get(env)

Specs

mix_deps_get(gatling_env) :: gatling_env

Run the mix task mix deps.get in the project being deployed

mix_digest(env)

Specs

mix_digest(gatling_env) :: gatling_env

Create static phoenix files

mix_release(env)

Specs

mix_release(gatling_env) :: gatling_env

Generate a release of the deploying project with Distillery

mix_release_init(env)

Specs

mix_release_init(gatling_env) :: gatling_env

Look look for /rel/config.exs If it doesn’t exist, run mix release.init

run(list)

Specs

run([project]) :: gatling_env

Callback implementation for c:Mix.Task.run/1.

upgrade(project)

Specs

upgrade([project]) :: gatling_env

The main function of Mix.Tasks.Gatling.Upgrade

upgrade_service(env)

Specs

upgrade_service(gatling_env) :: gatling_env

Leverage Distillery to perform a hot upgrade of the running project