Skip to content

Commit

Permalink
Don't update nginx on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmicahcooper committed Aug 26, 2016
1 parent 036852a commit 536dd06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $ ssh server.address
Follow instructions [here](http://elixir-lang.org/install.html#unix-and-unix-like) to install elixir
```bash
$ sudo apt-get install nginx
$ mix archive.install https://github.com/hashrocket/gatling_archives/raw/master/gatling-0.0.5.ez
$ mix archive.install https://github.com/hashrocket/gatling_archives/raw/master/gatling.ez
```

### Deploying your app
Expand Down Expand Up @@ -153,9 +153,6 @@ defmodule SampleProject.UpgradeCallbacks do
def before_upgrade_service(env)
def after_upgrade_service(env)

def before_configure_nginx(env)
def after_configure_nginx(env)

end
```

Expand Down
10 changes: 0 additions & 10 deletions lib/gatling/tasks/upgrade.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ defmodule Mix.Tasks.Gatling.Upgrade do
|> call(:make_upgrade_dir)
|> call(:copy_release_to_upgrade)
|> call(:upgrade_service)
|> call(:configure_nginx)
end

def mix_deps_get(env) do
Expand Down Expand Up @@ -49,15 +48,6 @@ defmodule Mix.Tasks.Gatling.Upgrade do
env
end

def configure_nginx(%{nginx_available_path: available, nginx_enabled_path: enabled} = env) do
if env.domains do
File.write!(available, env.nginx_template)
unless File.exists?(enabled), do: File.ln_s(available, enabled)
bash("nginx", ~w[-s reload])
end
env
end

def upgrade_service(env) do
bash("service", ~w[#{env.project} upgrade #{env.version}], [])
env
Expand Down

0 comments on commit 536dd06

Please sign in to comment.