-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dotenv-rails gem to load environment variables from .env into ENV…
… in development.
- Loading branch information
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
# export RAILS_ENV=development | ||
|
||
## Puma | ||
# export PORT=3000 | ||
# export PIDFILE=tmp/pids/server.pid | ||
## Workers and threads count | ||
# export WEB_CONCURRENCY=2 | ||
# export RAILS_MAX_THREADS=5 | ||
# export RAILS_MIN_THREADS=5 | ||
|
||
## Postgres | ||
# export POSTGRES_HOST=postgres | ||
# export POSTGRES_PORT=5432 | ||
export POSTGRES_USER=baseapp | ||
export POSTGRES_PASSWORD=123456 | ||
export POSTGRES_DB=baseapp | ||
|
||
## Redis URL | ||
# export REDIS_URL=redis://redis:6379/1 | ||
# export REDIS_CHANNEL_PREFIX=baseapp | ||
|
||
## Action cable | ||
# export ACTION_CABLE_URL=ws://localhost:28080 | ||
# export ACTION_CABLE_ALLOWED_REQUEST_ORIGINS=http:\/\/localhost* | ||
# Examples: | ||
# http:\/\/localhost* | ||
# http:\/\/example.*,https:\/\/example.* | ||
|
||
## Sidekiq web | ||
# export SIDEKIQ_WEB_USERNAME=sidekiq-web-dashboard | ||
# export SIDEKIQ_WEB_PASSWORD=sidekiq-web-123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,7 @@ | |
|
||
# Ignore SampleCov files | ||
/coverage/* | ||
|
||
# Ignore env files | ||
.env* | ||
!.env.example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters