-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ghost local install doesn't ignore dot files #868
Labels
Comments
I've transferred this issue to the Ghost-CLI repo. We had similar reports around |
so |
acburdine
added a commit
to acburdine/Ghost-CLI
that referenced
this issue
Jan 27, 2019
closes TryGhost#868 - add dir-is-empty util that checks empty directories correctly
1 task
acburdine
added a commit
to acburdine/Ghost-CLI
that referenced
this issue
Jan 27, 2019
closes TryGhost#868 - add dir-is-empty util that checks empty directories correctly
acburdine
added a commit
that referenced
this issue
Jan 27, 2019
closes #868 - add dir-is-empty util that checks empty directories correctly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Summary
When running
ghost local install
in a directory that contains a required dotfile; Installation fails with the message "Current directory is not empty, Ghost cannot be installed here." There are instance when these dot files are necessary or required by other systems. In my case when using Nodenv, Nodenv requires that a .node-version file be in the directory to map the correct local version of node that you would like to use.To Reproduce
Assuming that nodenv and the node version you would like to use is installed. Assuming that the ghost-cli is installed and working correctly. Assuming
CWD
is the selected install directory for your ghost site.Terminal Output
Technical details:
Workaround:
A simple work around is to make the node version global, but this defeats the purpose of having a version manager. Another workaround is to move the dot file one level higher; this causes an issue if you are deploying from a repo that use the files on a remote server.
It would be nice to have the ability via the command line to ignore dot files without removing them.
The text was updated successfully, but these errors were encountered: