Importing Content into Ghost - Error

Just saw your post on this thread:

A 504 error suggests that your proxy in front of Ghost (e.g. nginx) cancelled the request because it took too long. This is normal for larger imports since there’s more data to process.

Take a look at this post for Nginx configuration: