xnlogic 1.0.35 → 1.0.36
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/lib/xnlogic/cli/application.rb +1 -0
- data/lib/xnlogic/man/xnlogic +1 -1
- data/lib/xnlogic/man/xnlogic.txt +1 -1
- data/lib/xnlogic/templates/application/dev/console.rb.tt +0 -5
- data/lib/xnlogic/templates/application/logback.xml.tt +23 -0
- data/lib/xnlogic/templates/vagrant/config/start.sh +1 -1
- data/lib/xnlogic/templates/vagrant/config/transactor.properties +4 -23
- data/lib/xnlogic/templates/vagrant/config/vagrant.provision.tt +19 -3
- data/lib/xnlogic/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3e9566db26a52754774dfb26f71e89218e9bf55
|
4
|
+
data.tar.gz: 816298ab191d39d24aed152bc3238676d04acf7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebad032e5c9e85dfc2488b5c32cd441f7b9df2d30c1f0da5ec29e421d6229cde2867570abcf22a48f3318902cdbb6a3dec51999ca326123b4b6f9009fd423a46
|
7
|
+
data.tar.gz: f6d293f829474dfe0e67f92cc7aab13983a6c39bd6ec9ed4c8e132438a7ab01a228e42394f6cdd36fb10af2e22e6b7db8f9441979f9885b13fe1ace9096d7b78
|
@@ -192,6 +192,7 @@ module Xnlogic
|
|
192
192
|
"gemspec.tt" => "#{namespaced_path}.gemspec",
|
193
193
|
"Rakefile.tt" => "Rakefile",
|
194
194
|
"Readme.md.tt" => "Readme.md",
|
195
|
+
"logback.xml.tt" => "logback.xml",
|
195
196
|
"config.ru.tt" => "config.ru",
|
196
197
|
"dev/console.rb.tt" => "dev/console.rb",
|
197
198
|
"tasks/deploy.rb.tt" => "tasks/deploy.rb",
|
data/lib/xnlogic/man/xnlogic
CHANGED
data/lib/xnlogic/man/xnlogic.txt
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<configuration>
|
3
|
+
<!-- address performance concern with jul-to-slf4j -->
|
4
|
+
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
|
5
|
+
<resetJUL>true</resetJUL>
|
6
|
+
</contextListener>
|
7
|
+
|
8
|
+
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
9
|
+
<file>/opt/xn_apps/logs/datomic_peer.log</file>
|
10
|
+
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
11
|
+
<fileNamePattern>datomic_peer_%d{yyyy-MM-dd}.log</fileNamePattern>
|
12
|
+
<maxHistory>30</maxHistory>
|
13
|
+
</rollingPolicy>
|
14
|
+
|
15
|
+
<encoder>
|
16
|
+
<pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
|
17
|
+
</encoder>
|
18
|
+
</appender>
|
19
|
+
|
20
|
+
<root level="info">
|
21
|
+
<appender-ref ref="FILE" />
|
22
|
+
</root>
|
23
|
+
</configuration>
|
@@ -56,7 +56,7 @@ trap 'terminator' SIGINT
|
|
56
56
|
|
57
57
|
export RELOAD=true
|
58
58
|
echo "starting torquebox"
|
59
|
-
lsof -i :8080 -sTCP:listen | grep . || torquebox run &> /dev/null &
|
59
|
+
lsof -i :8080 -sTCP:listen | grep . || torquebox run -J "-Xmx1g -XX:MaxPermSize=128m -Ddatomic.objectCacheMax=128m" &> /dev/null &
|
60
60
|
echo "Hit Ctrl+C to terminate"
|
61
61
|
# Using cat to keep processes live
|
62
62
|
cat
|
@@ -4,7 +4,6 @@ host=localhost
|
|
4
4
|
#free mode will use 3 ports starting with this one:
|
5
5
|
port=4334
|
6
6
|
|
7
|
-
|
8
7
|
## OPTIONAL ####################################################
|
9
8
|
# The dev: and free: protocols typically use three ports
|
10
9
|
# starting with the selected :port, but you can specify the
|
@@ -14,35 +13,21 @@ port=4334
|
|
14
13
|
# h2-port=4335
|
15
14
|
# h2-web-port=4336
|
16
15
|
|
17
|
-
|
18
|
-
|
19
16
|
################################################################
|
20
17
|
# See http://docs.datomic.com/capacity.html
|
21
18
|
|
22
|
-
|
23
|
-
#
|
24
|
-
#memory-index-
|
25
|
-
#memory-index-max=128m
|
26
|
-
#object-cache-max=1g
|
27
|
-
|
28
|
-
# Recommended settings for -Xmx4g import jobs.
|
29
|
-
# memory-index-threshold=512m
|
30
|
-
# memory-index-max=1g
|
19
|
+
# Recommended settings for -Xmx4g production usage.
|
20
|
+
# memory-index-threshold=32m
|
21
|
+
# memory-index-max=512m
|
31
22
|
# object-cache-max=1g
|
32
23
|
|
33
24
|
# Recommended settings for -Xmx1g usage, e.g. dev laptops.
|
34
25
|
memory-index-threshold=32m
|
35
|
-
memory-index-max=
|
26
|
+
memory-index-max=256m
|
36
27
|
object-cache-max=128m
|
37
28
|
|
38
|
-
# Further (possibly outdated) info:
|
39
|
-
# http://support.datomic.com/customer/portal/articles/850962-handling-high-write-volumes
|
40
|
-
|
41
|
-
|
42
|
-
|
43
29
|
## OPTIONAL ####################################################
|
44
30
|
|
45
|
-
|
46
31
|
# Set to false to disable SSL between the peers and the transactor.
|
47
32
|
# Default: true
|
48
33
|
encrypt-channel=false
|
@@ -57,13 +42,9 @@ log-dir=/opt/xn_apps/datomic.log
|
|
57
42
|
# Transactor will write process pid here on startup
|
58
43
|
pid-file=/opt/xn_apps/datomic.pid
|
59
44
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
45
|
## OPTIONAL ####################################################
|
64
46
|
# See http://docs.datomic.com/capacity.html
|
65
47
|
|
66
|
-
|
67
48
|
# Soft limit on the number of concurrent writes to storage.
|
68
49
|
# Default: 4, Miniumum: 2
|
69
50
|
# write-concurrency=4
|
@@ -67,10 +67,26 @@ if [ -d $HOME/$XN_CLIENT/assets ]; then
|
|
67
67
|
npm install
|
68
68
|
fi
|
69
69
|
|
70
|
+
## Uncomment to upgrade Datomic
|
71
|
+
# export DATOMIC_VERSION=0.9.5130
|
72
|
+
# hr
|
73
|
+
# echo "Installing Datomic Service"
|
74
|
+
# cd $HOME
|
75
|
+
# wget https://s3.amazonaws.com/xn-datomic/datomic-free-${datomic_version}.zip?dl=1 --quiet -O datomic.zip
|
76
|
+
# unzip datomic.zip
|
77
|
+
# rm datomic.zip
|
78
|
+
# sudo mv datomic-free-${datomic_version} /usr/local/lib/datomic
|
79
|
+
# sudo mkdir -p /etc/datomic
|
80
|
+
# sudo rm -f /etc/datomic/transactor.properties
|
81
|
+
# sudo ln -s $HOME/$XN_CLIENT/config/transactor.properties /etc/datomic/transactor.properties
|
82
|
+
|
70
83
|
hr
|
71
84
|
echo "Starting Datomic Service"
|
72
85
|
hr
|
73
|
-
sudo
|
86
|
+
sudo rm -f /etc/init/datomic.conf
|
87
|
+
sudo ln -sf $HOME/$XN_CLIENT/config/datomic.conf /etc/init/datomic.conf
|
88
|
+
sudo initctl reload-configuration
|
89
|
+
sudo service datomic restart
|
74
90
|
|
75
91
|
hr
|
76
92
|
|
@@ -79,7 +95,7 @@ SERVER_START_SCRIPT="$HOME/$XN_CLIENT/config/start.sh"
|
|
79
95
|
echo "Customizing .zshrc for $XN_CLIENT development"
|
80
96
|
echo "export XN_CLIENT=$XN_CLIENT" >> ~/.zshrc
|
81
97
|
echo "alias xn-server=$SERVER_START_SCRIPT" >> ~/.zshrc
|
82
|
-
echo 'alias xn-console="(cd ~/$XN_CLIENT && bundle exec jruby -J-Xmx1g -J-XX:MaxPermSize=200m -S irb -I lib -r dev/console)"' >> ~/.zshrc
|
98
|
+
echo 'alias xn-console="(cd ~/$XN_CLIENT && bundle exec jruby -J-Xmx1g -J-XX:MaxPermSize=200m -J-Ddatomic.objectCacheMax=128m -S irb -I lib -r dev/console)"' >> ~/.zshrc
|
83
99
|
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*' >> ~/.zshrc
|
84
100
|
echo 'JRUBY_OPTS=--dev source $HOME/xn.dev/script/setup_stack' >> ~/.zshrc
|
85
101
|
echo "alias gs='git status'" >> ~/.zshrc
|
@@ -87,7 +103,7 @@ echo "alias gd='git diff -w'" >> ~/.zshrc
|
|
87
103
|
echo "alias gdc='git diff -w --cached'" >> ~/.zshrc
|
88
104
|
|
89
105
|
sudo apt-get install -y dos2unix
|
90
|
-
dos2unix $SERVER_START_SCRIPT
|
106
|
+
silent dos2unix $SERVER_START_SCRIPT
|
91
107
|
chmod +x $SERVER_START_SCRIPT
|
92
108
|
|
93
109
|
git config --global --add alias.co "checkout"
|
data/lib/xnlogic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xnlogic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darrick Wiebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -124,6 +124,7 @@ files:
|
|
124
124
|
- lib/xnlogic/templates/application/lib/gemname/type.rb.tt
|
125
125
|
- lib/xnlogic/templates/application/lib/gemname/type/url.rb.tt
|
126
126
|
- lib/xnlogic/templates/application/lib/gemname/version.rb.tt
|
127
|
+
- lib/xnlogic/templates/application/logback.xml.tt
|
127
128
|
- lib/xnlogic/templates/application/spec/gemname/gemname_spec.rb.tt
|
128
129
|
- lib/xnlogic/templates/application/spec/spec_helper.rb.tt
|
129
130
|
- lib/xnlogic/templates/application/tasks/deploy.rb.tt
|