Skip to content

Commit

Permalink
refactor to deploy on vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
ai-naymul committed Dec 28, 2023
1 parent a06d41f commit 11f3ec0
Show file tree
Hide file tree
Showing 27 changed files with 42 additions and 42 deletions.
6 changes: 3 additions & 3 deletions .gitignore → api/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.idea
__pycache__
venv
.idea
__pycache__
venv
instance
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
74 changes: 37 additions & 37 deletions templates/make-post.html → api/templates/make-post.html
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
{% from "bootstrap5/form.html" import render_form %} {% block content %} {%
include "header.html" %}

<!-- Page Header -->
<header
class="masthead"
style="background-image: url('../static/assets/img/edit-bg.jpg')"
>
<div class="container position-relative px-4 px-lg-5">
<div class="row gx-4 gx-lg-5 justify-content-center">
<div class="col-md-10 col-lg-8 col-xl-7">
<div class="page-heading">
{% if is_edit: %}
<h1>Edit Post</h1>
{% else: %}
<h1>New Post</h1>
{% endif %}
<span class="subheading"
>You're going to make a great blog post!</span
>
</div>
</div>
</div>
</div>
</header>

<main class="mb-4">
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
{{ ckeditor.load() }} {{ ckeditor.config(name='body') }} {{
render_form(form, novalidate=True, button_map={"submit": "primary"}) }}
</div>
</div>
</div>
</main>
{% include "footer.html" %} {% endblock %}
{% from "bootstrap5/form.html" import render_form %} {% block content %} {%
include "header.html" %}

<!-- Page Header -->
<header
class="masthead"
style="background-image: url('../static/assets/img/edit-bg.jpg')"
>
<div class="container position-relative px-4 px-lg-5">
<div class="row gx-4 gx-lg-5 justify-content-center">
<div class="col-md-10 col-lg-8 col-xl-7">
<div class="page-heading">
{% if is_edit: %}
<h1>Edit Post</h1>
{% else: %}
<h1>New Post</h1>
{% endif %}
<span class="subheading"
>You're going to make a great blog post!</span
>
</div>
</div>
</div>
</div>
</header>

<main class="mb-4">
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
{{ ckeditor.load() }} {{ ckeditor.config(name='body') }} {{
render_form(form, novalidate=True, button_map={"submit": "primary"}) }}
</div>
</div>
</div>
</main>
{% include "footer.html" %} {% endblock %}
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions vercel.json → api/vercel.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"builds": [
{
"src": "main.py",
"src": "api/main.py",
"use": "@vercel/python"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "main.py"
"dest": "api/main.py"
}
]
}

0 comments on commit 11f3ec0

Please sign in to comment.