Pushing your application code into your Code Studio project¶
Prerequisites:
To push Drupal application code into your Code Studio project, use one of the following options:
Option 1: Pushing code through an existing application repository¶
Prerequisites:
- For Drupal projects:
- Composer to manage your application dependencies
- PHP version 8.1, 8.2, or 8.3
- For Node.js projects:
- Node.js version 18 or 20
- Node Package Manager (NPM) to manage your application dependencies
- Clone your application code on your local machine or on Cloud IDE.
To push an existing Drupal application repository into Code Studio:
Navigate to the Drupal project directory on your local machine or on Cloud IDE:
- Add a new remote based on your requirement:
To use multiple remotes to manage the repository, add your repository to remote with the name codestudio:
git remote add codestudio https://code.acquia.com/[gitlab-group]/[gitlab-project-name].git
To use only Code Studio to manage the repository, add your repository to remote with the name origin:
git remote add origin https://code.acquia.com/[gitlab-group]/[gitlab-project-name].git
Push the code from the project root to Code Studio:
git add .
git commit -m "Installed site"
git push <REMOTE> <BRANCHNAME>
Ensure that your development environment has the database and files for the installed site:
acli push:db
acli push:files
Code Studio is ready to manage your site.
Option 2: Pushing code through a new Drupal or Node.js application repository¶