Skip to content

ENH: Simplify the way knex is added to the path #103

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

Closed
mmornati opened this issue Nov 7, 2017 · 0 comments
Closed

ENH: Simplify the way knex is added to the path #103

mmornati opened this issue Nov 7, 2017 · 0 comments

Comments

@mmornati
Copy link

mmornati commented Nov 7, 2017

Instead of linking the knex migrator file into the bin folder

        for f in "$GHOST_INSTALL/current/node_modules/.bin/knex-migrator"*; do \
		[ -x "$f" ]; \
		ln -svf "$f" /usr/local/bin/; \
	done

I think it is easier to add the knex bin folder to the user path:
ENV PATH="${GHOST_INSTALL}/current/node_modules/knex-migrator/bin:${PATH}"

It is working and tested here

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