Closed AbdealiLoKo closed 8 years ago
Seems that the reason for this is the build
folder is empty.
In civibuild_detect_site_name()
when we check compgen -G $BLDDIR/*.sh
it returns nothing making it return without the SITE_NAME
I don't think that dmaster is a valid build type. Type is only optional when the buildname matches a build type. Sorry, I didn't take an in-depth look but if that doesn't fix it, let us know.
dmaster
is an alias (civibuild.md, civibuild.aliases.sh). It's equivalent to saying:
civibuild create dmaster --type drupal-demo --civi-ver master --title "CiviCRM Sandbox on Drupal" ...
ah yeah... I think #235 is a good fix and I should go back to the drawing board. I was striving for more flexible argument passing. I should create some tests for the cases I would like supported. I can't take the time right now because it is the last day of my travels, so I suggest merging your PR to resolve the regression. I should also do some more research on parameter parsing. This is what I'm going for e.g. civibuild --web-root /var/www/mysite create --type drupal-demo mysite But I think "drupal-demo" would get interpreted as the site name currently. It seems foolish now to think that validation would get me there. Create is probably the action that most needs the flexibility. I won't write down all the thoughts that just ran through my head, but I think this might be the best one...to break up the help text and give action specific help. I think the key here and for the objective of more flexible parameters is the same... to modularize it into different commands so that: civibuild create... is dispatched to a "civibuild-create" internal command. This way, there would be only one un-named parameter which would also be required. Currently, we parse unnamed params before the named params. I think having only one required unnamed param would allow a single params parse loop, which makes it easy to separate unnamed params from named-param values. Maybe there is still an easy way I'm no thinking of to separate unnamed params from values.
@totten @ginkgomzd Thanks for the replies
We should change the docs at https://github.com/civicrm/civicrm-buildkit/blob/master/doc/civibuild.md then ?
Awesome. The latest PRs got it working fine. Closing this now.
I'm not quite sure if this is a docs issue or a civibuild issue.
I installed buildkit and now tried to run
civibuild
using the command here and it just keeps showing me the-h
info again and again. I'm running:$ civibuild create dmaster --url http://localhost:8001 --admin-pass s3cr3t