• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TryGhost / Ghost-CLI / 1644 / 2
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 13 Aug 2018 03:58AM UTC
Files 67
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Aug 2018 03:56AM UTC coverage: 100.0%. Remained the same
1644.2

push

travis-ci

acburdine
fix(migrations): sudo - don't fail with existing settings folder

issue #776

In production sites, when the ghost user is used, the `content/*` folder needs to be owned by the Ghost user so the ghost application will not run into permission issues. In the migration, to make sure this happens, we run the `mkdir` command using sudo (i.e. `sudo -E -u ghost mkdir {path}`). When the Ghost user isn't needed, we use the `fs-extra` library to make sure the directory exists (specifically `ensureDirSync`). `fs.ensureDirSync` is equivilant to running `mkdir` with the `p` flag, so the behaviour between sudo and no-sudo differs. By adding the `p` flag to the sudo command, the behaviour between the two cases are equalized, and the migrations won't fail if the content/settings folder exists when the Ghost user is used.

1131 of 1131 branches covered (100.0%)

2255 of 2255 relevant lines covered (100.0%)

5.59 hits per line

Source Files on job 1644.2
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1517
  • Travis Job 1644.2
  • dc2d0f59 on github
  • Prev Job for on master (#1605.2)
  • Next Job for on master (#1654.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc