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
The main function of Mix.Tasks.Gatling.Upgrade
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
Specs
call(gatling_env, :before | :after) :: gatling_env
Wrapper function for every action.
Executes the :before_<action> and :after_<action> functions defined in /upgrade.
Specs
callback(gatling_env, atom, :before | :after) :: gatling_env
Executes :before or :after callback function defined in /upgrade.
Specs
copy_release_to_upgrade(gatling_env) :: gatling_env
Copy the generated release into the releases directory for the deploying project
Specs
make_upgrade_dir(gatling_env) :: gatling_env
Create a directory of the current release in the build path of the project
Specs
mix_compile(gatling_env) :: gatling_env
Compile the application being deployed
Specs
mix_deps_get(gatling_env) :: gatling_env
Run the mix task mix deps.get in the project being deployed
Specs
mix_release(gatling_env) :: gatling_env
Generate a release of the deploying project with Distillery
Specs
mix_release_init(gatling_env) :: gatling_env
Look look for /rel/config.exs
If it doesn’t exist, run mix release.init
Specs
upgrade([project]) :: gatling_env
The main function of Mix.Tasks.Gatling.Upgrade
Specs
upgrade_service(gatling_env) :: gatling_env
Leverage Distillery to perform a hot upgrade of the running project