-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore: add troubleshooting #1
base: main
Are you sure you want to change the base?
Conversation
Added troubleshooting info about `Failed to push your source code because your repository is shallow and therefore cannot be pushed to the Clever Cloud remote` error message on GitLab
chore: added troubleshooting message about `Application not found` error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @dgoosens I'm updating this repo with new scripts that should resolve this PR and avoid a troubleshooting section. Let me know what you think of this if you have some time.
Sorry for taking so long to respond, you can ping me on any PR or issue so I get the notification 🙏
Solution is to make sure one has a full copy of the repository. | ||
To do so, in GitLab, go to `Settings` > `CI/CD` > `General pipelines` and scroll to the `Git strategy` section. | ||
There either choose `git clone` to have a full clone of the repository or use `git fetch` but set `Git shallow clone` to `0` to make sure you get the full history | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @dgoosens, thanks for the PR!
I've opted to add to the scripts the following line:
variables:
GIT_DEPTH: 0
This prevents the error and avoids getting the user too much into GitLab documentation, to get started and running asap.
This may mean you need to specify the organization aswell | ||
|
||
```bash | ||
clever link ${APP_ID} --org ${ORG_ID} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you encountered this error? Because it arises when you try to link using the alias, but not with the app_id
which is linked to the organisation by default.
Added troubleshooting info about
Failed to push your source code because your repository is shallow and therefore cannot be pushed to the Clever Cloud remote
error message on GitLabThis section explains how to setup GitLab to avoid this issue
And added troubleshooting message about
Application not found
errorThis requires one adds the info about the organization with the
--org
param