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

Hot code-reloading deploys error out during upgrades #4

Open
HashNuke opened this issue Jul 19, 2015 · 7 comments
Open

Hot code-reloading deploys error out during upgrades #4

HashNuke opened this issue Jul 19, 2015 · 7 comments
Labels

Comments

@HashNuke
Copy link
Owner

An issue related to exrm or relx causes creating releases to error out. I've reported the issue here - bitwalker/exrm#167

Been updating details from debugging sessions and identified the problem.

@HashNuke HashNuke changed the title Hot code-reloading deploys are buggy Hot code-reloading deploys error out during upgrades Jul 19, 2015
@HashNuke HashNuke added the bug label Jul 19, 2015
@manukall
Copy link
Contributor

manukall commented Aug 9, 2015

i wonder if the solution to this is to simply run the app from another directory, as the exrm doc suggests. would you accept a PR that adds a /srv/app/{{ app_name}} directory and deploys the app there?

@HashNuke
Copy link
Owner Author

HashNuke commented Aug 9, 2015

@manukall Yes. that would be wonderful. Right now the ansible scripts just start the release in the place it's built. The setup needs to follow the exrm docs instead and start the release after copying it elsewhere. By deploying to another directory (like /home/{{ deployer_user} }/srv/{{ app_name }} is a good place because all apps are under the non-root deployer user.

@HashNuke
Copy link
Owner Author

Haven't looked into this yet. I'll do it by this weekend.

@vysakh0
Copy link

vysakh0 commented Jan 20, 2016

@HashNuke I've followed the docs. And I get an error that some how I couldn't get past 😞

During this step

TASK: [HashNuke.elixir-stack | upgrade app] *********************************** 
<> ESTABLISH CONNECTION FOR USER: deployer

I get this error

stderr: fs: -c: line 0: syntax error near unexpected token `newline'
fs: -c: line 0: `rel/myapp/bin/myapp upgrade ==>'

I tried upgrading the exrm release manually and it works. Seems to be a problem with shell script? It would be great you could help 👍

@HashNuke
Copy link
Owner Author

Hot-code reloading is broken AFAIK.
I'll have to update it this weekend.

On Wed, Jan 20, 2016 at 4:04 PM, Vysakh Sreenivasan <
[email protected]> wrote:

@HashNuke https://github.com/HashNuke During this step

TASK: [HashNuke.elixir-stack | upgrade app] ***********************************
<> ESTABLISH CONNECTION FOR USER: deployer

I get this error

stderr: fs: -c: line 0: syntax error near unexpected token newline' fs: -c: line 0:rel/myapp/bin/myapp upgrade ==>'

I've followed the docs and the versions are different, some how I
couldn't get past this. I tried upgrading the exrm release manually and
it works. Seems to be a problem with shell script? It would be great you I
could help [image: 👍]


Reply to this email directly or view it on GitHub
#4 (comment)
.

@pinx
Copy link
Contributor

pinx commented Mar 16, 2016

I would like to experiment with hot upgrade, so a fix would be welcome.

@HashNuke
Copy link
Owner Author

@pinx being worked upon in another branch. Here's the status #23. Hopefully will be over by this weekend.

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

No branches or pull requests

4 participants