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
node_modules/, the Cordova
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 <your remote> <your branch>
After restoring the .gitignore attempt to build in Appflow using the new commit.