Being consistent is key. Self-discipline is key. Holding myself accountable for meeting (or failing to meet) my deadlines is key.
For writers, especially if you’re writing your very first book, encouragement is essential because you already carry so many doubts, consciously or unconsciously.