#!/usr/bin/env ruby require 'erb' template = File.read 'erb/frontend-react-js.env.erb' content = ERB.new(template).result(binding) filename = "frontend-react-js.env" File.write(filename, content) template = File.read 'erb/sync.env.erb' content = ERB.new(template).result(binding) filename = "sync.env" File.write(filename, content)