I have a working spider on my local machine, which writes items to a local postgres database.
I am now trying to run the same spider through scrapyd on an EC2 instance. This obviously won't work, because the code (models, pipelines, settings files) refers to a database on my local machine.
Which adaptations should I implement to make this work ?