Browse Source

small errors

prieto 7 years ago
parent
commit
490b61eea3
2 changed files with 2 additions and 3 deletions
  1. 1
    2
      README
  2. 1
    1
      progs/create_datas.sh

+ 1
- 2
README View File

@@ -154,8 +154,7 @@ Mass deployments tricks & tips:
154 154
 	
155 155
 	#Configure nginx & restart it
156 156
 	export lodel2_install_dir="/usr/lib/python3/dist-packages";
157
-	export my_ip=$(hostname -I | cut -d' ' -f1)
158
-	echo -e "server {\n\tlisten 80 default_server;\n\tlisten [::]:80 default_server;\n\tlocation / {\n\t\tproxy_pass http://$my_ip:1337/;\n\t}\n\t\n\tlocation /static/ {\n\t\talias $lodel2_install_dir/lodel/plugins/webui/templates/;\n\t}\n\t\n}\n" > /etc/nginx/sites-enabled/default
157
+	echo -e "server {\n\tlisten 80 default_server;\n\tlisten [::]:80 default_server;\n\tlocation / {\n\t\tproxy_pass http://localhost:1337/;\n\t}\n\t\n\tlocation /static/ {\n\t\talias $lodel2_install_dir/lodel/plugins/webui/templates/;\n\t}\n\t\n}\n" > /etc/nginx/sites-enabled/default
159 158
 	/etc/init.d/nginx restart
160 159
 	#Build dyncode for instances
161 160
 	slim -a -m

+ 1
- 1
progs/create_datas.sh View File

@@ -35,7 +35,7 @@ done
35 35
 M=$(expr $N / 4)
36 36
 for i in `eval echo {1..$M}`;
37 37
 do
38
-    persons=$(printf "use lodel2_$instance\n db.Person.find({}, {lodel_id:1, _id:0}).limit(3)" | mongo  $HOSTDB/admin -u lodel2_admin -p lapwd | sed "1,3d" | sed -e "s/{ \"lodel_id\" : //g" | sed -e "s/ }//g" | sed "\$d")
38
+    persons=$(printf "use lodel2_$instance\n db.Person.find({}, {lodel_id:1, _id:0}).limit(3)" | mongo  $HOSTDB/admin -u admin -p pwd | sed "1,3d" | sed -e "s/{ \"lodel_id\" : //g" | sed -e "s/ }//g" | sed "\$d")
39 39
     tmp=""
40 40
     for i in $persons
41 41
     do

Loading…
Cancel
Save