Comments (4)
What's especially weird is, when I try this on a vagrant VM, it works fine. Grrr...
from artifact-cookbook.
By way of workaround, I commented out:
# symlinks ({
# ".migrate-migrating" => "migrations/.migrate-migrating",
# "local_config.coffee" => "configs/local_config.coffee"
# })
And added to the end of my before_symlink proc:
script "do_symlink" do
interpreter "bash"
user "root"
code <<-EOH
ln -s "#{shared_dir}/.migrate-migrating" "#{release_path}/migrations/.migrate-migrating"
ln -s "#{shared_dir}/local_config.coffee" "#{release_path}/configs/local_config.coffee"
EOH
end
Which, of course, fixes it.
from artifact-cookbook.
Hi, thanks for the report! I have a few random thoughts that I'll place here:
Just to make sure, do all of your link
resources work in your before_symlink
proc?
I noticed this line in your gist - https://gist.github.com/jwalton/da1634758061e190f049#file-partial-output-L39 - if your before_symlink
is creating that file, there could be something bad happening when Chef attempts to make that directory.
Every time I come back to the symlinks
code, I get slightly confused. I believe the intent is to symlink folders into the deploy directory and create them under shared
.
Either way, the symlinks
attribute is confusing and should be improved upon. Please let me know if any of my (somewhat random) thoughts help!
from artifact-cookbook.
I don't have any link
resources in before_symlink
, as I was relying on symlinks
. :P
The readme says "symlinks - A hash that maps files in the shared directory to their paths in the current release", which makes it sound like it should work for plain files as well as for directories (and, like I said, it works on a vagrant VM for inexplicable reasons). I agree; the symlink code is a bit strange - I wonder if the intent is just to make sure that the file or directory being linked to is owned by the correct user with sane permissions, and create it if it doesn't exist? Perhaps some logic is required to check and see if the target is a file or a directory? I can try writing this up and seeing if it fixes the problem...
I still don't understand what any of this has to do with checksum
, though. :(
from artifact-cookbook.
Related Issues (20)
- ChefSpec and unit-testing recipes with artifact-cookbook callbacks. HOT 4
- Dont unzip war/jars HOT 10
- wrong tar command HOT 17
- ability to select nexus_cli gem version HOT 1
- Cookbook does not follow 302 Responses
- use_symlinks option to deploy without symlinks HOT 2
- artifact_file try to verify the checksum when it's not provided in the recipe HOT 4
- Feature Request: add chef-vault support HOT 1
- file:// schema support
- Tag versions of cookbook HOT 1
- pass http headers to Chef::Resource::RemoteFile
- artifact_file with credentials
- Avoid the package extraction HOT 3
- Messy ChefSpec tests with artifacts (previos definition of ... was here) HOT 1
- Still maintained? HOT 5
- artifact_test does not appear to be a valid cookbook. Does it have metadata.rb ? HOT 2
- Latest versions of chef do not include activesupport HOT 1
- uninitialized constant Chef::Resource::ArtifactFile on Chef client 13 HOT 3
- NoMethodError: undefined method `split' for :mid:Symbol on Chef Server 13.7.16
- This cookbook doesn't support newer version of nexus, since Nexus 3 has different endpoint for downloaidng artifacts, seems this cookbook doesnt work for nexus version 3.x HOT 1
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 artifact-cookbook.