orats 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +9 -0
- data/README.md +5 -1
- data/lib/orats/commands/new.rb +8 -0
- data/lib/orats/templates/base/.env.example +87 -0
- data/lib/orats/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36e79bf0f322b9defaa743ca95c88b59a0120dd4
|
4
|
+
data.tar.gz: 349f8ff57deec2802ffe5cf6da5bd6cae66b07df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb3a8da069e08566e189ac967b4390d7aea9f3760fe5a8955d9c885172e2111430c98c5edba1a5b1e07cc4d1b92e82883e83516e44c24c48c6f2f369b6552406
|
7
|
+
data.tar.gz: b0af3616b3319ed14e499b8e4d6cfa015a8747cdd876513b1505c4917a8ae9aa1389103ee52036b05f6ed28b09e4a7a3830551a6398c4ebcddbc5869ff826b4c
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -117,7 +117,8 @@ add it.
|
|
117
117
|
|
118
118
|
#### How can I learn about the Docker specific aspects of the project?
|
119
119
|
|
120
|
-
Check out the blog post
|
120
|
+
Check out the blog post
|
121
|
+
[Dockerize a Rails 5, Postgres, Redis, Sidekiq and Action Cable Application](http://nickjanetakis.com/blog/dockerize-a-rails-5-postgres-redis-sidekiq-action-cable-app-with-docker-compose).
|
121
122
|
|
122
123
|
#### What do I do after I generate the application?
|
123
124
|
|
@@ -179,6 +180,9 @@ find /tmp/foo_bar -type f -exec sed -i -e 's/OratsBase/FooBar/g' {} \;
|
|
179
180
|
find /tmp/foo_bar -type f -exec sed -i -e 's/orats_base/foo_bar/g' {} \;
|
180
181
|
find /tmp/foo_bar -type f -exec sed -i -e 's/VERSION/5.0.0/g' {} \;
|
181
182
|
|
183
|
+
# Rename the example .env file since `.env` is git ignored.
|
184
|
+
mv /tmp/orats/.env.example /tmp/orats/.env
|
185
|
+
|
182
186
|
# Clean up the cloned directory.
|
183
187
|
rm -rf /tmp/orats
|
184
188
|
```
|
data/lib/orats/commands/new.rb
CHANGED
@@ -19,6 +19,7 @@ module Orats
|
|
19
19
|
check_exit_conditions
|
20
20
|
create_template
|
21
21
|
personalize_template
|
22
|
+
rename_env_file
|
22
23
|
what_to_do_next
|
23
24
|
end
|
24
25
|
|
@@ -83,6 +84,13 @@ module Orats
|
|
83
84
|
end
|
84
85
|
end
|
85
86
|
|
87
|
+
def rename_env_file
|
88
|
+
env_file_source = File.join(@target_path, '.env.example')
|
89
|
+
env_file_destination = File.join(@target_path, '.env')
|
90
|
+
|
91
|
+
File.rename(env_file_source, env_file_destination)
|
92
|
+
end
|
93
|
+
|
86
94
|
def set_template_replacements
|
87
95
|
project_name = Pathname.new(@target_path).basename.to_s
|
88
96
|
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# This is used by Docker Compose to set up prefix names for Docker images,
|
2
|
+
# containers, volumes and networks. This ensures that everything is named
|
3
|
+
# consistently regardless of your folder structure.
|
4
|
+
COMPOSE_PROJECT_NAME=orats_base
|
5
|
+
|
6
|
+
# What Rails environment are we in?
|
7
|
+
RAILS_ENV=development
|
8
|
+
|
9
|
+
# Rails log level.
|
10
|
+
# Accepted values: debug, info, warn, error, fatal, or unknown
|
11
|
+
LOG_LEVEL=debug
|
12
|
+
|
13
|
+
# You would typically use `rails secret` to generate a secure token. It is
|
14
|
+
# critical that you keep this value private in production.
|
15
|
+
SECRET_TOKEN=asecuretokenwouldnormallygohere
|
16
|
+
|
17
|
+
# More details about these Puma variables can be found in config/puma.rb.
|
18
|
+
# Which address should the Puma app server bind to?
|
19
|
+
BIND_ON=0.0.0.0:3000
|
20
|
+
|
21
|
+
# Puma supports multiple threads but in development mode you'll want to use 1
|
22
|
+
# thread to ensure that you can properly debug your application.
|
23
|
+
RAILS_MAX_THREADS=1
|
24
|
+
|
25
|
+
# Puma supports multiple workers but you should stick to 1 worker in dev mode.
|
26
|
+
WEB_CONCURRENCY=1
|
27
|
+
|
28
|
+
# Requests that exceed 5 seconds will be terminated and dumped to a stacktrace.
|
29
|
+
# Feel free to modify this value to fit the needs of your project, but if you
|
30
|
+
# have any request that takes more than 5 seconds you probably need to re-think
|
31
|
+
# what you are doing 99.99% of the time.
|
32
|
+
REQUEST_TIMEOUT=5
|
33
|
+
|
34
|
+
# The database name will automatically get the Rails environment appended to it
|
35
|
+
# such as: orats_base_development or orats_base_production.
|
36
|
+
DATABASE_URL=postgresql://orats_base:yourpassword@postgres:5432/orats_base?encoding=utf8&pool=5&timeout=5000
|
37
|
+
|
38
|
+
# The full Redis URL for the Redis cache. The last segment is the namespace.
|
39
|
+
REDIS_CACHE_URL=redis://:yourpassword@redis:6379/0/cache
|
40
|
+
|
41
|
+
# Action mailer (e-mail) settings.
|
42
|
+
# You will need to enable less secure apps in your Google account if you plan
|
43
|
+
# to use GMail as your e-mail SMTP server.
|
44
|
+
# You can do that here: https://www.google.com/settings/security/lesssecureapps
|
45
|
+
SMTP_ADDRESS=smtp.gmail.com
|
46
|
+
SMTP_PORT=587
|
47
|
+
SMTP_DOMAIN=gmail.com
|
48
|
+
SMTP_USERNAME=you@gmail.com
|
49
|
+
SMTP_PASSWORD=yourpassword
|
50
|
+
SMTP_AUTH=plain
|
51
|
+
SMTP_ENABLE_STARTTLS_AUTO=true
|
52
|
+
|
53
|
+
# Not running Docker natively? Replace 'localhost' with your Docker Machine IP
|
54
|
+
# address, such as: 192.168.99.100:3000
|
55
|
+
ACTION_MAILER_HOST=localhost:3000
|
56
|
+
ACTION_MAILER_DEFAULT_FROM=you@gmail.com
|
57
|
+
ACTION_MAILER_DEFAULT_TO=you@gmail.com
|
58
|
+
|
59
|
+
# Google Analytics universal ID. You should only set this in non-development
|
60
|
+
# environments. You wouldn't want to track development mode requests in GA.
|
61
|
+
# GOOGLE_ANALYTICS_UA='xxx'
|
62
|
+
|
63
|
+
# The full Redis URL for Active Job.
|
64
|
+
ACTIVE_JOB_URL=redis://:yourpassword@redis:6379/0
|
65
|
+
|
66
|
+
# The queue prefix for all Active Jobs. The Rails environment will
|
67
|
+
# automatically be added to this value.
|
68
|
+
ACTIVE_JOB_QUEUE_PREFIX=orats_base:jobs
|
69
|
+
|
70
|
+
# The full Redis URL for Action Cable's back-end.
|
71
|
+
ACTION_CABLE_BACKEND_URL=redis://:yourpassword@redis:6379/0
|
72
|
+
|
73
|
+
# The full WebSocket URL for Action Cable's front-end.
|
74
|
+
# Not running Docker natively? Replace 'localhost' with your Docker Machine IP
|
75
|
+
# address, such as: ws://192.168.99.100:28080
|
76
|
+
ACTION_CABLE_FRONTEND_URL=ws://localhost:28080
|
77
|
+
|
78
|
+
# Comma separated list of RegExp origins to allow connections from.
|
79
|
+
# These values will be converted into a proper RegExp, so omit the / /.
|
80
|
+
#
|
81
|
+
# Examples:
|
82
|
+
# http:\/\/localhost*
|
83
|
+
# http:\/\/example.*,https:\/\/example.*
|
84
|
+
#
|
85
|
+
# Not running Docker natively? Replace 'localhost' with your Docker Machine IP
|
86
|
+
# address, such as: http:\/\/192.168.99.100*
|
87
|
+
ACTION_CABLE_ALLOWED_REQUEST_ORIGINS=http:\/\/localhost*
|
data/lib/orats/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Janetakis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- ".gitignore"
|
92
92
|
- ".rubocop.yml"
|
93
93
|
- ".travis.yml"
|
94
|
+
- CHANGELOG.md
|
94
95
|
- Gemfile
|
95
96
|
- LICENSE
|
96
97
|
- README.md
|
@@ -103,6 +104,7 @@ files:
|
|
103
104
|
- lib/orats/commands/new.rb
|
104
105
|
- lib/orats/common.rb
|
105
106
|
- lib/orats/templates/base/.dockerignore
|
107
|
+
- lib/orats/templates/base/.env.example
|
106
108
|
- lib/orats/templates/base/.gitignore
|
107
109
|
- lib/orats/templates/base/.rubocop.yml
|
108
110
|
- lib/orats/templates/base/Dockerfile
|