Comments (8)
Thanks for raising this issue @florianbouvot.
The version is extracted from the package.json
file located at the root of the repository.
server-configs-apache/bin/build.sh
Lines 17 to 18 in 1653141
Do you confirm the file does exist on your side?
from server-configs-apache.
@LeoColomb yes package.json is present.
I do the following things:
- In the root of our project:
git clone https://github.com/h5bp/server-configs-apache.git
- Update path in my htaccess.conf (present in root project):
h5bp/
toserver-configs-apache/h5bp/
(never add to do that before) - Build using:
server-configs-apache/bin/build.sh ./.htaccess ./htaccess.conf
from server-configs-apache.
- Build using:
server-configs-apache/bin/build.sh ./.htaccess ./htaccess.conf
And this does not generate any warnings?
What is the output of the command?
from server-configs-apache.
@LeoColomb the output
from server-configs-apache.
Yes, here is the reason why: realpath
command is not found.
Introduced by 93d524f with #295
@tomkyle Any idea?
from server-configs-apache.
OK, so the command is missing on that system. Seems to me though that the realpath command is nothing new in our *nix eco systems as it stems from 2007 or 2008 [1] and also found its way into GNU coreutils 10 years ago [2].
As a quick fix for @florianbouvot I'd propose installing the realpath command (simple one-liner) [3], so he's up and running again in 5 minutes.
Because of the ages-old availability of this command I do not feel a sophisticated fallback solution is necessary. But a nicer error handling could improve screen experience, perhaps something like this:
function require {
command -v $1 >/dev/null 2>&1 || {
echo >&2 "Command '${1}' is required but not installed."
exit 1;
}
}
require realpath
If needed I can provide PR this weekend.
[1] https://stackoverflow.com/a/284664
[2] coreutils/coreutils@77ea441
[3] https://command-not-found.com/realpath
from server-configs-apache.
@florianbouvot You are using MacOs which doesn't have realpath
by default. If you have Homebrew installed then brew install coreutils
will solve your issue.
If you don't have Homebrew installed then I would recommend installing Homebrew. 😃
from server-configs-apache.
@nosilleg yes I'm using macOS and of course Home-brew, it's the first time that it doesn't works.
I will try with coreutils
.
EDIT: It works well, thanks you ;)
from server-configs-apache.
Related Issues (20)
- Feature request: video/mov in .htaccess? HOT 4
- SSL auto renewal blocked by www redirect HOT 2
- `DirectoryIndex` comment if pre-compressed content is enabled HOT 4
- Question: mpm_winnt_module HOT 3
- Remove `image/avif-sequence` MIME type HOT 6
- Variable evaluation in build script HOT 2
- Add build parameter to generate `.htaccess` without comments HOT 2
- `ServerTokens Prod` missing HOT 2
- Missing `<IfModule mod_authz_core.c>` block HOT 1
- Remove `<IfModule>` from `Options -Indexes` HOT 1
- Add `<IfModule http2_module>` for h2 protocol support HOT 9
- Add note about `RewriteOptions Inherit` HOT 3
- `Permissions-Policy` header for Google “Topics API” HOT 1
- Add `Document Policy` to security section HOT 2
- Add `Shared Brotli` and `Shared Zstandard` (zstd) HOT 2
- Error with `Permissions-Policy` header: Unrecognized feature: `'document-domain'` HOT 1
- Format `Content-Security-Policy` header directives HOT 4
- Add `ExpiresByType` for `audio/mp4` with `"access plus 1 year"` HOT 3
- Fallback with ExpiresDefault does not seem to include images HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server-configs-apache.