1

I created my Drupal website on Acquia Cloud, and am at the stage of adding modules. After some Googling, I came across an article on Acquia Cloud's website that said this:

If your website is hosted on Acquia Cloud, the module directories are part of the code repository, which is not directly writable. This means that you can't add a module using the Update Manager or SFTP.

Does this mean I need to work with the code locally, before pushing the changes to the website? I'm kind of confused because I tried installing a module using "Install New Module" and it worked fine.

I Like
  • 1,711
  • 2
  • 27
  • 52
  • Do you have live development enabled? Because that would be the reason why you can use the Update Manager in this circumstance. – Aubrey Robertson Aug 16 '16 at 16:02
  • 1
    yes, it is enabled - am I missing out on anything important by not editing code locally? – I Like Aug 16 '16 at 23:11
  • You've given me enough details to give you a complete answer. Hope that helps! – Aubrey Robertson Aug 17 '16 at 15:45
  • Also, I would change the title, or add more details about what you want to know about the repository in specific. – Aubrey Robertson Aug 17 '16 at 15:46
  • If you found my answer useful, can you please mark it as the accepted. See why [marking an answer as the accepted one](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work) is important. – Aubrey Robertson Aug 18 '16 at 04:25

1 Answers1

1

I'm no Acquia Cloud expert. But according to what I've learned from the documentation, using the "Install New Module" feature of Update Manager will only work in a live development environment. I.E. If you attempted to use this feature on a normal development or production environment, it would fail. live development mode is different from regular development (I think), as it's a feature that's turned on only when you want to do code editing on the cloud. You can install modules in this way and then commit/push them from the dev environment to the live environment. Live Development mode disables certain features (see the Acquia cloud documentation for more details).

Working on the code locally gives you more control over what's going on, as well as allowing you to test it in a safe, closed environment. Additional benefits of doing local development include (but aren't limited to) using advanced tools such as debuggers/profilers (like Xdebug), and Integrated Development Environments (IDES, such as PHPStorm).

Most cloud hosting services (including Acquia) have some form of easy local development tool which will take care of most of the work of setting it up for you (instead of having to set up your own WAMP/LAMP/WEMP/LEMP stack). For example, I use Pantheon hosting at work and use a tool called Kalabox for this purpose (also allows me to run multiple local development environment side-by-side). I have never used Acquia cloud, but I hear they offer a tool just like that called Acquia Dev Desktop. These types of tools often come with version control software built in for repository management. A common workflow: you write code locallly, commit it, then push it up to the cloud dev environment. Integration and testing take place on the cloud dev and staging environments respectively, and then it goes to production from there.

If I were you, this is where I would start for easy set-up of a local dev environment. Most developers/coders do their work locally, and then use their cloud dev and staging/testing environments as a integration and staging areas. Hope that helps!

Aubrey Robertson
  • 237
  • 2
  • 14
  • Great! Your advice is more helpful than what I read on Acquia's website. Also, while Dev and Staging environments are available for my free account, production environment is not. Does this mean my local edits wouldn't be shown? – I Like Aug 18 '16 at 23:48
  • @st4rgut They will be shown when you push from your local environment up to your Dev environment. Pushing with Git merges all of your local changes to the cloud. If you found this answer helpful, please don't forget to mark it as accepted (by clicking the *checkmark* below the voting buttons). [See why accepting an answer is important](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work) – Aubrey Robertson Aug 19 '16 at 15:30
  • Also, keep in mind that *live development* is an option you can turn off and on (and like I said, *certain features are disabled while it is turned on*). – Aubrey Robertson Aug 19 '16 at 15:35