Comments (8)
I think that it may be outside of a defined scope for this tool.
What are we trying to accomplish? I would expect that deployment would involve the following steps:
- git add, commit, and push
- create database backup
- check out tag or branch on a given cloud environment
- run post deploy commands like cache clear or database updates
I’m not sure that any of those things make sense as the responsibility of Acquia CLI.
I’m particularly concerned about creating a strong coupling between Acquia CLI and specific composer or Drush commands. I think we should also leave it up to the user as to how they will commit changes.
At most, we could create a deploy command to do the following:
- create a database backup
- deploy a specified (already created and pushed) branch/tag to an environment
- output a message suggesting the use of cloud hooks for post deploy operations
- clear varnish caches
- offer to open site
Note that in specifically avoiding git, composer, and Drush operations.
from cli.
Real-life use case from an Acquia CLI user in IDEs:
- Pulled code, DB, files in the IDE
- Replaced codebase by fresh new install
- User blocked on uploading DB and files back to the Cloud Platform
- Got back to Dev Studio CLI to be unblocked
from cli.
OK, it sounds like you’re envisioning a different scope for this command. Are you suggesting that the command should push files and database upstream? Can you write the user story and requirements?
from cli.
I think ads deploy
or a similar feature is definitely needed. For example, my current dev
environment is running an older version of Drupal 8. In my CloudIDE I have created a new multi-site running Drupal 9. I should be able to push out the code to the repo, as well as update the DB as needed in this instance. Also, it should work without BLT as well
I agree that it should not necessarily be an ACLI command, but it should allow for a deploy
of some sort to be implemented through the CloudIDE.
from cli.
For the sake of clarity, I think it might be better to do something like this:
- Rename ‘refresh’ command to ‘pull’
- Add ‘pull:files’, ‘pull:code’ and ‘pull:database’ and ‘pull:run-scripts’ commands you replace options like ‘—no-code’
- Add ‘push:database’ command
- Add ‘push:files’ command
If we add a ‘push:code’ command, I would prefer it to be non-functional and for it to simply emit a message like “Please use git to push code. If you’re using composer, ensure that you commit all required vendor dependencies to your hosting environment.”
I don’t wanna be involved in the process of building an artifact at all. That is what BLT currently does, and it something the cloud should eventually do.
from cli.
This is especially important since the drush setup on Cloud IDE does not allow you push a database with something like drush sql-sync @self @cloudsub.dev
. As a result there's no apparent way to get a database from a Cloud IDE instance to a Cloud environment.
from cli.
Yes, consider this on the roadmap.
from cli.
Resolved by #305.
from cli.
Related Issues (20)
- CLI-1192: Symfony 6.3.4 breaks checklists
- CLI-1210: `acli pull:db` uses the wrong dburl, ignoring ACLI_DB_HOST HOT 10
- CLI-1218: Access Denied Error on pull:db using ACLI 2.20.1, Drupal 10.1.5 using Lando HOT 7
- CLI-1219: API key labels should be based on the account email address
- CLI-1225: The pull:database command fails silently if pv is not installed.
- CLI-1231: phpspec/prophecy 1.18 breaks tests
- CLI-1235: Unable to connect to local database using credentials mysql://drupal:drupal@localhost/drupal. HOT 3
- CLI-1252: [New Command] To allow encrypt the text like Acquia Pipeline do HOT 1
- CLI-1259: test issue
- CLI-1265: Ability to specify port for push:database and pull:database
- CLI-1267: Need help on to resolve acli auth:login issue in azure devops HOT 2
- CLI-1271: Fix XDG Base Dir implementation
- CLI-1274: BLT replace with Acquia cli push artifacts issue HOT 3
- CLI-1276: JSON format break: Notice: Composer script `post-acli-api-applications-list` does not exist in `composer.json`, skipping. This is not an error. HOT 5
- CLI-1279: Test priority support ticket
- CLI-1280: Test priority support ticket HOT 1
- CLI-1296: `auth:login` on 2.23.1 > Invalid key in Cloud datastore HOT 6
- CLI-1308: Make acli push:artifact independent of a cloud account HOT 6
- CLI-1318: Test issue
- CLI-1332: acli app:new:from:drupal7 crashes on cPanel environment with "stream_get_contents(): Argument #1 ($stream) must be of type resource, bool given" on HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.