Expenses prior to renting house out.

I had a primary residence that I have made into a rental property. Quick outlines as follows

In June 2020 I moved out and empty the house.

In August I've hired a management company to oversea all repairs/maintenance work prior to renting the house out. Repainted, repaired leaking toilet...etc.

In October the house is officially on the market for viewing and application.

In November I had a roof leak repair that was done. 

In December the house is still on the market and I had to hire landscaper/cleaner to tidy up.

So I am still several thousand dollars negative on this house. 
What do I do with all the expense?

In addition, I sold another rental property completely separate from this unit in another state, and profited some money that's taxable under long-term capital gain. Can I deduct the loss I had from the one house against the gains from the sale?