Residents have been told to move to new houses inland by the end of the month to make way for a giant glass factory.