prevent removal if using travisci

This commit is contained in:
Cole Mackenzie 2018-10-16 13:22:04 -06:00
parent 00177b838f
commit 5a4a3217f1

View File

@ -69,8 +69,11 @@ def remove_utility_files():
def remove_heroku_files():
file_names = ["Procfile", "runtime.txt"]
file_names = ["Procfile", "runtime.txt", "requirements.txt"]
for file_name in file_names:
if file_name == "requirements.txt" and "{{ cookiecutter.use_travisci }}".lower() == "y":
# don't remove the file if we are using travisci but not using heroku
continue
os.remove(file_name)