-
Notifications
You must be signed in to change notification settings - Fork 940
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
Doesn't work with Acquia cloud hosting #125
Comments
Acquia Cloud should handle drupal-project style projects just fine. The issue here is that Drush's archive-dump has not yet decided how to handle Composer managed sites. This issue can be closed in favor of that one. P.S. I work for Acquia and am the Drush maintainer. |
Hi weitzman, can you explain how can i deploy code in acquia cloud. I mean, if i have vendor folder excluded from .git, how can i run composer update in acquia cloud?. thx in advance |
My recommendation is to develop on Github/Bitbucket and then in your CI, run composer install and if you r tests pass, push the fully built codebase to Acquia's git. So, only use Acquia's git for deployment, and not development. |
I’m closing this issue because it has been inactive for a few weeks. @weitzman proposed a possible solution. We can add some docs to the README.md or provide docs for the various hosting providers in our wiki. Please submit PRs. Thanks! |
We're having the same error as @miiimooo with attempting to push a local drupal-composer/drupal-project site to Acquia Cloud. I'm new to D8 and Composer; I come from the world of D7, the world of using We're redesigning our university's main site in D8 and hosting it with Acquia, and some of the modules we plan to use (Address and Search API Solr) require installation via Composer. Since Composer is where Drupal is headed, our Customer Success Engineer at Acquia agreed that it would probably be best for us to switch to a 100% Composer-based management for our site (we're extremely early in development and our early dev site was a standard Drush D8 site before we discovered the need for modules which require installation via Composer). So, right now we're trying to switch over to a Composer-managed site. Here are the steps I took when trying to get my local drupal-composer/drupal-project onto an Acquia Cloud subscription:
The error I received is the following:
I see that @weitzman proposed a possible solution, but we're currently not using a CI or developing on Github/Bitbucket. We My question is: Based on my situation here, what are the steps for getting a local drupal-composer/drupal-project based site into Acquia Cloud? I'm not really sure what to do or where to go from here, especially since there's not much documentation out there. Any help would be greatly appreciated. |
@cainaru did you come to any resolution on this? |
this issue for us is that vendor folder built via composer install runs fine locally, so as per acquia recommendations we commit the vendor folder to git and deploy. |
I am having issues also with trying to understand how to deploy a drupal site built locally with composer drupal project. There is no documentation on how to do this. I am not using dev desktop, just git to move my code. Does anyone have any success with this? The basic problem is that when you install a site using composer the folder structure is different from what Acquia requires. |
You might look at http://github.com/digitalpulp/ballast which is our Docker based setup based on this project for some pointers on setup. We build on Codeship Pro, which has a free plan, but you could build in a deployment branch locally. Most of our projects are hosted on Acquia with this setup. |
Thanks for this. I have two questions:
Does this method preclude you from using DevDesktop to pull code and clone the site? |
When deploying a project based on drupal-composer to Acquia cloud I run into a problem that has to do with the filesystem layout on Acquia cloud. Although we have #64 and this fork https://github.com/caxy/drupal-project mentions Acquia cloud I think it's a fundamental problem. Acquia cloud expects you to import your site starting from the docroot/web folder and everything below. It doesn't allow for the vendor folder to be outside. So you end up with a problem that the automated drush archive-dump doesn't include the vendor folder and after the import you get an autoloader error, something similar to:
require(/mnt/www/html/YOURSITE/docroot/../vendor/autoload.php): failed to open stream: No such file or directory autoload.php:16
Fatal error: require(): Failed opening required '/mnt/www/html/YOURSITE/docroot/../vendor/autoload.php' (include_path='.:/usr/local/php5.6/lib/php') in /mnt/www/html/YOURSITE/docroot/autoload.php on line 16
Personally, I prefer having the vendor folder outside the docroot/web so I just want to flag this issue. I think Acquia should make their workflow composer drupal friendly instead of this project trying to move the vendor folder or some other hack.
The text was updated successfully, but these errors were encountered: