Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy.copy_release_to_deploy, File not found, In Wrong folder #55

Open
PaulRHanson316 opened this issue Jul 7, 2017 · 0 comments
Open

Comments

@PaulRHanson316
Copy link

Hi,

I'm new to Elixir and Phoenix. Been trying to deploy to DO and can't get past this point. I've see Issue #39 which sounds like my issue even though I'm using v1.1.1. The tar.gz file is being created in the rel folder rather than in the _build folder.

I get the following message:

...
Generated paul app
==> Assembling release..
==> Building release paul:0.0.1 using environment prod
==> Including ERTS 8.3 from /usr/lib/erlang/erts-8.3
==> Packaging release..
==> Release successfully built!
    You can run it in one of the following ways:
      Interactive: rel/paul/bin/paul console
      Foreground: rel/paul/bin/paul foreground
      Daemon: rel/paul/bin/paul start
** (File.CopyError) could not copy from "/home/deploy/paul/_build/prod/rel/paul/releases/0.0.1/paul.tar.gz" to "/home/deploy/deployments/paul/paul.tar.gz": no such file or directory
    (elixir) lib/file.ex:524: File.cp!/3
    lib/gatling/tasks/deploy.ex:109: Mix.Tasks.Gatling.Deploy.copy_release_to_deploy/1
    lib/gatling/tasks/deploy.ex:201: Mix.Tasks.Gatling.Deploy.call/2
    lib/gatling/tasks/deploy.ex:35: Mix.Tasks.Gatling.Deploy.deploy/1
    (mix) lib/mix/task.ex:300: Mix.Task.run_task/3
    (mix) lib/mix/cli.ex:58: Mix.CLI.run_task/2

rel/config.exs:

use Mix.Releases.Config,
    # This sets the default release built by `mix release`
    default_release: :default,
    # This sets the default environment used by `mix release`
    default_environment: :dev

# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/configuration.html


# You may define one or more environments in this file,
# an environment's settings will override those of a release
# when building in that environment, this combination of release
# and environment configuration is called a profile

environment :dev do
  set dev_mode: true
  set include_erts: false
  set cookie: :"X5y=yyPyygmAByM~iONz^Ti`|vyY7(m56.U_Y$w:eJTyDjYqZX$+vKNA?u3xvHV<"
end

environment :prod do
  set include_erts: true
  set include_src: false
  set cookie: :"X5y=yyPyygmAByM~iONz^Ti`|vyY7(m56.U_Y$w:eJTyDjYqZX$+vKNA?u3xvHV<"
end

# You may define one or more releases in this file.
# If you have not set a default release, or selected one
# when running `mix release`, the first release in the file
# will be used by default

release :paul do
  set version: current_version(:paul)
end

Elixir Version

elixir -v
Erlang/OTP 19 [erts-8.3] [source-d5c06c6] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]

Elixir 1.4.4

Thank you for your help!

Best,
Paul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant