What I do is program locally with Tomcat on my machine. When I want to go to production, I execute an MSBuild task that packages the application. Then, I deploy the WAR (for web applications) or the RAR (for batch applications). We also use Docker containers for other installations. In both cases, you have to define deployment units and use the deploy tasks from the GX IDE.
I've never tried developing on one machine and copying directly from GX to another machine.