Great idea probably not feasable. The military even with their effectivly unlimited budget recently ended their rail gun programs. One of the main reasons being they require too much maintenance/unreliable. I doubt the moon will be a place that can have effective repair trips.