Commit c848b819 authored by Subina's avatar Subina
Browse files

Revert "constant value set for db connection"

This reverts commit e464bc79
parent e464bc79
DPORT=1111
HOST=192.168.1.175
DPORT1=1111
HOST1=127.0.0.1
\ No newline at end of file
HOST=192.168.1.78
$(document).ready(function(){
const DPORT1 = process.env.DPORT1;
const HOST1 = process.env.HOST1;
console.log("Database server port "+DPORT1);
console.log("database server host ip "+HOST1);
/**NOTE: new_data = {
grade: 1,
subject: 'english',
......@@ -180,11 +178,10 @@ $(document).ready(function(){
}
$.ajax({
type: 'POST',
url: "http://" + HOST1 + ":" + DPORT1 + '/admin/1',
url: 'http://127.0.0.1:1111/admin/1',
data: JSON.stringify(new_data),
contentType: 'application/json',
success: function(responsedata) {
console.log("Here I am"+HOST1);
var data = responsedata.data;
activation_info = responsedata.activation_info;
post_response_data = data;
......
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