A common cause of failed Appflow builds relates to committing files or folders in a project that should be generated as part of the Appflow build process.
Project repos committed to Ionic Appflow should never include the
plugins/ directories. The
www/ directory should only be included if the project type is
.gitignore file is included in new projects. If a project's
.gitignore file is absent or has been modified it must be restored.
To restore the default
- Retrieve the appropriate
.gitignorefile from Github, depending on your project type:
- Copy the file to the root of your project repo
- Run the following commands:
git rm -r --cached . git add . git commit -m 'restoring gitignore' git push ionic master
Once those commands have been run, you should see a new Deploy build in Ionic Appflow and can continue troubleshooting if necessary.