Skip to content

Commit

Permalink
Improve environment file contents
Browse files Browse the repository at this point in the history
  • Loading branch information
İsmail Akbudak committed Dec 14, 2018
1 parent b426d4e commit 995ded4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
7 changes: 6 additions & 1 deletion templates/README.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# TODOs
- Change email sender domain address and basic_auth info in `config/settings.yml`
- Change email sender domain address in `config/initializers/devise.rb`
- Move your `config/master.key` variable to in `.environments` files
- Create `.pronto.yml` file from `example.pronto.yml` file

<% unless @options[:skip_docker] %>
Expand All @@ -14,8 +13,14 @@
➜ ✗ docker-compose run app bundle exec rails db:create db:migrate db:seed
➜ ✗ docker-compose up
- open in your browser localhost:3000 or lvh.me:3000
- If you want to access rails console run this command before
➜ ✗ docker-compose run app bundle install --binstubs
➜ ✗ docker-compose run app bundle exec rails c
<% end %>
# Local development
<% unless @options[:skip_docker] %>
- Change <%= @options[:skip_sidekiq] ? '' : 'REDISTOGO_URL and' %> POSTGRESQL_HOST environment in `.env.local` file
<% end %>
- run following commands on terminal
➜ ✗ bundle exec rails server
- open in your browser localhost:3000 or lvh.me:3000
Expand Down
2 changes: 1 addition & 1 deletion templates/active_storage/amazon_env_all.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

AWS_S3_BUCKET_NAME= # S3 Settings
AWS_S3_BUCKET_NAME= # S3 Settings
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
2 changes: 1 addition & 1 deletion templates/bullet/bullet_settings.rb.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

config.after_initialize do
Bullet.enable = true
Bullet.alert = true
Bullet.alert = false
Bullet.bullet_logger = true
Bullet.console = true
Bullet.rails_logger = true
Expand Down
7 changes: 2 additions & 5 deletions templates/docker/docker_env_local_sample.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@

##### Docker compose environments

# Set Rails/Rack environment
RACK_ENV=development
POSTGRESQL_HOST=postgres
RACK_ENV=development # Docker compose environments
POSTGRESQL_HOST=postgres # Docker compose environments
2 changes: 1 addition & 1 deletion templates/docker/docker_env_local_sample_host.erb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REDIS_HOST=redis
REDIS_HOST=redis # Docker compose environments
3 changes: 1 addition & 2 deletions templates/mailer/.env.local.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

# SMTP Get username and password from https://mailtrap.io
SMTP_USER_NAME=
SMTP_USER_NAME= # SMTP Get username and password from https://mailtrap.io
SMTP_PASSWORD=
SMTP_PORT=2525
SMTP_ADDRESS=smtp.mailtrap.io
Expand Down

0 comments on commit 995ded4

Please sign in to comment.