Skip to content
This repository was archived by the owner on Apr 18, 2020. It is now read-only.

web/app: configure path to page templates - #20

Merged
bajtos merged 1 commit into
masterfrom
feature/fix-missing-home-ejs
Jun 3, 2014
Merged

web/app: configure path to page templates#20
bajtos merged 1 commit into
masterfrom
feature/fix-missing-home-ejs

Conversation

@bajtos

@bajtos bajtos commented Jun 2, 2014

Copy link
Copy Markdown
Member

Express searches page templates in $(pwd)/view by default.
That obviously does not work when the server is started via

node web/app

In this commit, the express app is configured with a views path
resolved using __dirname, which makes it independent on the current
working directory.

/to @ritch please review

This patch resolved the regression introduced by #10 as described in #12.

Express searches page templates in `$(pwd)/view` by default.
That obviously does not work when the server is started via

    node web/app

In this commit, the express app is configured with a views path
resolved using `__dirname`, which makes it independent on the current
working directory.
@bajtos bajtos added the bug label Jun 2, 2014
@bajtos bajtos added this to the 1.0 milestone Jun 2, 2014
@ritch

ritch commented Jun 2, 2014

Copy link
Copy Markdown
Member

👍

bajtos added a commit that referenced this pull request Jun 3, 2014
web/app: configure path to page templates
@bajtos
bajtos merged commit aff9caf into master Jun 3, 2014
@bajtos
bajtos deleted the feature/fix-missing-home-ejs branch June 3, 2014 06:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants