fix ignore configure error, and track api/photos files