Migrating an existing Drupal project
#
Step by step instructionsMake sure you have a clean, up-to-date checkout of your repository.
Create a new feature branch:
Run the migration script from the project root:
For Drupal 8+For Drupal 7 with composer.json run
Please check troubleshooting for other Drupal 7 cases
Migration script will create
.circleci/config.yml
file for CircleCI builds. You might need to adapt branch names or contexts.Important
Add this to silta.yml config if You use Drupal 7Read through the output of the script and check for any instructions to perform manual steps.
Check modifications made by the script with
git diff
. Pay particular attention to code that has been removed, we don't want to lose anything important.Commit all changes and push them to Github. You should see a build starting automatically on CircleCI: https://circleci.com/gh/wunderio
If the build has errors, try to fix them until the build is green.
- The
build-deploy
is the one that matters the most. Thevalidation
job can point out issues with your code would prevent it from running. However, you may decide to ignore phpcs errors for now. - Have a look at our troubleshooting section.
- The
The last step of the
build-deploy
contains information on how to access your newly created Silta environment.- You should be able to access the site at the given URL with the given basic authentication username and password.
- The site is not yet installed, we'll do that in the next step.
- You should also be able to access the environment using the provided SSH instructions.
Upload a database dump using the command provided in CircleCI output. You might need to log in via SSH and clear the caches, import configuration or run updates if your database dump is not in sync with the current codebase. At this point you should have a somewhat functioning environment accessible.
Create a pull request for your feature branch, have a peer review it, and merge it. CircleCI should automatically build the master environment.
Upload the database dump and the files to the master environment. This is the reference environment by default, meaning that new environments will be created with a copy of this content.
Congratulations, your project is now up and running! Please share any issues you had or ideas for improvements.
#
Drupal 7 migration tips#
Project uses make file for buildsHave something like this in .circleci/config.yml
#
Missing drushAdd composer.json in Drupal folder
And then in .circleci/config.yml add