update_code
in sub-directory of release_path
#3052
Replies: 5 comments 15 replies
-
I tried that with shopware to only have it in a subdir in git and it didn’t work well. You need to change everything™️. All the build, composer install, etc. It sucked so hard, I abandoned the idea. |
Beta Was this translation helpful? Give feedback.
-
Hmm, I don't see the problem here. Having it configurable doesn't hurt right? Because in this case the composer and build stuff needs to stick to the How would you solve the update/deployment process of such frameworks? I'm not really into shopware, so I don't know what the requirements are there. |
Beta Was this translation helpful? Give feedback.
-
Right now you can check out subdirectories easily https://deployer.org/docs/7.x/recipe/deploy/update_code#sub_directory |
Beta Was this translation helpful? Give feedback.
-
This works if you want to checkout a sub-directory of the git repository. I want to checkout the git repository inside a sub-directory in release_path. Or we could make use of the |
Beta Was this translation helpful? Give feedback.
-
@stephan-strate Did you manage to make a recipe for Grav? |
Beta Was this translation helpful? Give feedback.
-
I would like to be able to checkout the repositories code to a sub-directory of the
release_path
.My goal is to create a zero-downtime recipe for Grav. The flat-file cms Grav is a little bit different to most other frameworks. The repository will only contain the sub-directory
user/
with custom plugins, themes, configuration and so on (see Folder Structure). My idea is to usecomposer create-project
(see Installation) in therelease_path
first and then clone the content into the sub-directoryuser/
.Proposal:
Create
update_code_path
variable, which defaults torelease_path
, but also makes it configurable for special use-cases.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions