Setting discourse evrytime you open putty?

Yes, the official way is better. If you have a forum with content already, then you should back it up first, to restore on the new install.