Browse files

Clean up .env and Procfile

* Remove duplicate Procfile added in 6b48ec6. The new duplicate was
  not being used in the script. The older templates/Procfile was used.
* Remove duplicate `copy_file 'Procfile'` command. Keep new version so
  there are fewer commands in non-intention-revealing method,
* Remove output instructing user to copy sample.env to .env. This output
  is likely to get lost in the rest of the ouput. We also want to
  automate that step in #120.
* Remove unnecessary comments: 1) No need to instruct user to copy file
  because they should use script/setup. 2) Do not need to add .env to
  .gitignore because Suspenders already ignores it. 3) Do not instruct
  all developers to add Heroku config variables. That is a process
  outside the scope of this file, better documented in
* Link to official documentation in sample.env.
* Remove HOSTNAME from sample.env. Developers should be able to override
  the port from the command line.
  • Loading branch information...
1 parent 5a65e71 commit 570495c38db71008797689d14bc5d08fa15ef397 @croaky croaky committed Nov 17, 2012
Showing with 1 addition and 16 deletions.
  1. +0 −1 Procfile
  2. +0 −1 lib/suspenders/app_builder.rb
  3. +0 −1 lib/suspenders/generators/app_generator.rb
  4. +1 −13 templates/sample.env
1 Procfile
@@ -1 +0,0 @@
-web: bundle exec thin start -p $PORT -e $RACK_ENV
1 lib/suspenders/app_builder.rb
@@ -226,7 +226,6 @@ def create_github_repo(repo_name)
def copy_miscellaneous_files
copy_file 'errors.rb', 'config/initializers/errors.rb'
- copy_file 'Procfile'
def customize_error_pages
1 lib/suspenders/generators/app_generator.rb
@@ -130,7 +130,6 @@ def configure_app
build :add_email_validator
build :setup_default_rake_task
build :setup_clearance
- say 'Adding sample Procfile. Copy sample.env to .env'
build :setup_foreman
14 templates/sample.env
@@ -1,14 +1,2 @@
-# Foreman reads environment variables from a .env file. For more info, see
-# To use foreman:
-# - Copy this file to `.env` on your local machine
-# - Add `.env` to your `.gitignore` file
-# - On Heroku, do `heroku config:add RACK_ENV=(staging|production)
-# Needed for thin.
-# Set as appropriate for environment.

0 comments on commit 570495c

Please sign in to comment.