Commit 021764aa authored by daidekun's avatar daidekun

fixbugs

parent aa326a14
......@@ -5,7 +5,8 @@ package_path="./${module_name}/app.jar"
config_path="./${module_name}/application.properties"
namespace=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace`
sed -i \"s/.xyqb.com/-${namespace}.q-gp.com/\" ${config_path}
echo "namespace is $namespace"
sed -i "s/.xyqb.com/-$namespace.q-gp.com/" ${config_path}
echo "java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/${module_name}_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar ${package_path} --worker 1 --currentWorker 1 -t --server.port=80 --spring.config.location=${config_path}"
java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/${module_name}_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar ${package_path} --worker 1 --currentWorker 1 -t --server.port=80 --spring.config.location=${config_path}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment