The very first step to learning discipline is to know the reason as to why you are doing what you are doing. Then define the goals and make a plan. Once you have done it, stick to the plan. Do whatever you have planned consistently; no excuses are allowed here. Once you start to consistently do whatever the plan says, you will start to become disciplined. A journal would be the best bet.