If you’re having trouble writing consistently by yourself, write where other people are also working. A coffee shop or library where people are actually working and not just socializing can help. If you’re in a place where other people are getting things done, then you’ll have no choice but to join them.