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

Didn't find the script regarding to Initialize Local System #7

Open
yuchunc opened this issue Jan 10, 2020 · 3 comments
Open

Didn't find the script regarding to Initialize Local System #7

yuchunc opened this issue Jan 10, 2020 · 3 comments

Comments

@yuchunc
Copy link
Contributor

yuchunc commented Jan 10, 2020

I couldn't find the script in this command from README:

sudo bin/deploy-init-local

Does it suppose to generate one after I build the release?

@reachfh
Copy link
Contributor

reachfh commented Jan 13, 2020

mix_deploy now requires that you specify the list of templates you want it to generate.

@njwest
Copy link

njwest commented May 1, 2021

The Readme.md and your blog post are broken now since those build scripts are gone :P is there an updated guide for handling the deploy-init-local part?

@reachfh
Copy link
Contributor

reachfh commented May 3, 2021

deploy-init-local should be generated by the config in config/prod.exs, e.g.

config :mix_deploy,
    # Generate runtime scripts from templates
    templates: [
      # Systemd wrappers
      "start",
      "stop",
      "restart",
      "enable",

      # System setup
      "create-users",
      "create-dirs",
      "set-perms",

      # Local deploy
      "init-local",
      "copy-files",
      "release",
      "rollback",

      # DB migrations
      "migrate"
    ],
    app_user: "app",
    app_group: "app"

Check that it is there in the file matching your environment (e.g. dev vs prod). If you ran bin/build before updating the config, you might need to run it again.

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

3 participants