From a358896c037068fedd0f8a2eee35c4ab879d4db4 Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Fri, 2 Oct 2020 13:48:29 +0200 Subject: [PATCH] Rename gen related files to their purpose --- client/nginx.conf | 5 ----- client/public/{gen_posts.ex => gen.ex} | 4 ++-- client/public/templates/{index.html => post_index_page.html} | 0 client/public/templates/{post.html => post_single_page.html} | 0 4 files changed, 2 insertions(+), 7 deletions(-) rename client/public/{gen_posts.ex => gen.ex} (93%) rename client/public/templates/{index.html => post_index_page.html} (100%) rename client/public/templates/{post.html => post_single_page.html} (100%) diff --git a/client/nginx.conf b/client/nginx.conf index 9bb0238..e2315f3 100644 --- a/client/nginx.conf +++ b/client/nginx.conf @@ -37,11 +37,6 @@ http { alias /app/gen/; } - location /api { - proxy_pass https://raymon.dev/api; - proxy_buffering on; - } - error_page 404 /404.html; location = /404.html { root /app/error; diff --git a/client/public/gen_posts.ex b/client/public/gen.ex similarity index 93% rename from client/public/gen_posts.ex rename to client/public/gen.ex index 03d3da6..2ec4af1 100644 --- a/client/public/gen_posts.ex +++ b/client/public/gen.ex @@ -1,6 +1,6 @@ # Templates will be filled by posts -index_template = File.read!("./templates/index.html") -post_template = File.read!("./templates/post.html") +index_template = File.read!("./templates/post_index_page.html") +post_template = File.read!("./templates/post_single_page.html") post_contents = File.ls!("./posts") |> Enum.reject(fn(x) -> String.starts_with?(x, ".") end) diff --git a/client/public/templates/index.html b/client/public/templates/post_index_page.html similarity index 100% rename from client/public/templates/index.html rename to client/public/templates/post_index_page.html diff --git a/client/public/templates/post.html b/client/public/templates/post_single_page.html similarity index 100% rename from client/public/templates/post.html rename to client/public/templates/post_single_page.html