Skip to content

SHARED env variable in post-deploy hook is blank #6

Description

@slaskis

Hey, I'm trying to use a little hook magic for my node server, something like this:

post-deploy npm install && (cat $SHARED/pids/master.pid | xargs kill -s SIGUSR2) || PORT=8001 node server.js >> $SHARED/logs/node.log 2>&1

and well, it fails because $SHARED is blank, so I tried this to confirm:

post-deploy env

which listed SHARED=/home/deploy/app/shared as expected, but trying this:

post-deploy cat $SHARED/pids/master.pid

fails with cat: /pids/master.pid: No such file or directory, in other words SHARED is blank...

am I using it wrong?

It's on ubuntu 10.4 (installed using the node knockout linode stack script )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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