Skip to content

support fully qualified paths for use with scripts like pm2 #66

@mikedevita

Description

@mikedevita

I use this for an internal imgur type mirror for our enterprise and it works great, however typically we use pm2 to manage the start/stop of nodejs scripts.

something like pm2 start --name img.domain.com /opt/conf/www/img.domain.com/server/server.js is what we try to achieve however i noticed that relative/local paths for the configs are being used, specifically noticed this at server/server.js:220. I changed this to be something like.

main(path.resolve('./','server/', 'server.conf'))

and i use full paths from root for the server.conf for the i and client directories yet i get file not found when i try to refresh a page after uploading an image.

Is there something else im missing to get this to work without cd'ing into server/ and running node server.js &

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions