platform_sh_rails 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -0
- data/lib/platform_sh_rails/version.rb +1 -1
- data/lib/platform_sh_rails.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 451d4e8cda66838bfb50cdb148581a1ee1dc006d
|
4
|
+
data.tar.gz: c6bdb24afcfd05962bd71dd6d40daf3b69b1b5d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa011ce5547b9c0664a733388fa84302495c4ff683b75fe8cdae01c9fc4e10bbb08fb144a256a00795a08389ccfaceabac2aa569282586f07fa0fce0cb812bd9
|
7
|
+
data.tar.gz: 4d0633b0ad7627ae3f72d18e114ad885b5b3a94c458081d18cfc768c13e70a4715806343760f2022b106515daf4362795c579fb918c61929052fccc26264b3f8
|
data/README.md
CHANGED
@@ -21,6 +21,22 @@ Or install it yourself as:
|
|
21
21
|
|
22
22
|
## Usage
|
23
23
|
|
24
|
+
This gem setups the environment for Rails, it will autoconfigure:
|
25
|
+
|
26
|
+
* ActiveRecord
|
27
|
+
* RabbitMQ (using bunny)
|
28
|
+
* Redis
|
29
|
+
* ElasticSearch
|
30
|
+
* Solr
|
31
|
+
* Mongodb
|
32
|
+
|
33
|
+
The gem will autoconfigure rails to use the first service it finds. So if you just add this gem to yout Gemfile
|
34
|
+
and push everything should work automagically.
|
35
|
+
|
36
|
+
If you have multiple services of the same type.. or multiple relational databases (like a postgres + a mysql) in your .platform/services file .. well you should configure by hand.
|
37
|
+
|
38
|
+
Also note that for ActiveRecord this will default to mysql2, but if you loaded the mysql Gem it should still work.
|
39
|
+
|
24
40
|
|
25
41
|
## Development
|
26
42
|
|
data/lib/platform_sh_rails.rb
CHANGED
@@ -7,7 +7,7 @@ class PlatformSHRailtie < Rails::Railtie
|
|
7
7
|
ENV['TMPDIR']="/tmp"
|
8
8
|
end
|
9
9
|
if PlatformSH::on_platform? && !PlatformSH::is_build_environment?
|
10
|
-
|
10
|
+
PlatformSH::export_services_urls
|
11
11
|
end
|
12
12
|
if PlatformSH::on_platform? && PlatformSH::is_build_environment?
|
13
13
|
ENV['DB_ADAPTER']="nulldb"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: platform_sh_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ori Pekelman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: platform_sh
|