Commit f563b2b9 authored by Marc Duez's avatar Marc Duez

makefile server : set default cgi adress

parent 726c8877
align: core align.o
mkdir -p ../../browser/cgi
g++ -o ../../browser/cgi/align.cgi align.o ../core.a
g++ -o ../../browser/cgi/align.cgi align.o ../core/vidjil.a
align.o: align.cpp
g++ -c align.cpp
......
......@@ -9,6 +9,7 @@ if (typeof config != 'undefined') {
if (config.cgi_address) CGI_ADDRESS = config.cgi_address
if (config.db_address) DB_ADDRESS = config.db_address
if (config.db_address == "default") DB_ADDRESS = "https://"+window.location.hostname+"/vidjil/"
if (config.cgi_address == "default") CGI_ADDRESS = "http://"+window.location.hostname+"/browser/cgi/"
}
if (config.demo && config.demo.file.length != 0){
......
......@@ -120,7 +120,7 @@ echo "=============="
echo "
var config = {
/*cgi*/
\"cgi_address\" : \"http://127.0.1.1/cgi-bin/\",
\"cgi_address\" : \"default\",
/*database */
\"use_database\" : true,
......
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