Brownsville, Oregon was where much of the movie was filmed as it played the role of the fictitious town of Castle Rock
The scene where the boys outrace a locomotive across a trestle was filmed at Lake Britton on the McCloud River Railroad, near McArthur-Burney Falls Memorial State Park, California.