Commit cca084b1 authored by ismael.rodriguez's avatar ismael.rodriguez

Fixing uris

parent 50ef1555
......@@ -7,10 +7,10 @@ RUN apt-get update && apt-get install -y git
RUN git clone https://gitlab.citius.usc.es/ismael.rodriguez/stac.git
RUN mkdir /var/www/stac
RUN cp -R stac/api stac/web stac/stac /var/www/stac
RUN chmod -R 755 /var/www
RUN cp stac/api stac/web stac/stac /var/www/stac/
RUN chmod -R 755 /var/www/stac
ADD stac.conf /etc/apache2/sites-enabled/000-default.conf
EXPOSE 80
CMD /usr/sbin/apache2ctl -D FOREGROUND
......@@ -27,7 +27,7 @@ $(document).ready(function() {
$("#show_file").show();
$('#info_file').html("Done!");
window.location = app_url + "/file.html";
window.location = APP_CONFIG.app_url + "/file.html";
} else{
resultado = resultado + "<p style=\"color:red\";><strong>" + data.fallo + "</strong></p>";
$('#info_file').html("<br>"+resultado);
......@@ -51,7 +51,7 @@ function show_file() {
$.ajax({
type: "GET",
url: APP_CONFIG.app_url + "/file/"+hash,
url: APP_CONFIG.api_url + "/file/"+hash,
success : function(data) {
if(data.fallo) {
$("#danger").html("There is no file uploaded.").show();
......
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