Skip to content

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

@mmornati

Description

@mmornati

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions