Skip to content

Commit

Permalink
feat: Improve Render deployment tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
drorganvidez committed Oct 2, 2024
1 parent 09484c2 commit 4f6678b
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 39 deletions.
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
* text=auto
*.sh text eol=lf
*.py text eol=lf
*.txt text eol=lf
*.md text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.json text eol=lf
*.js text eol=lf
*.css text eol=lf
*.html text eol=lf
*.jsx text eol=lf
*.tsx text eol=lf
2 changes: 1 addition & 1 deletion _site/assets/css/just-the-docs-dark.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _site/assets/css/just-the-docs-default.css.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions _site/assets/css/just-the-docs-head-nav.css
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
.site-nav ul li a {
background-image: linear-gradient(-90deg, #ebedf5 0%, rgba(235, 237, 245, 0.8) 80%, rgba(235, 237, 245, 0) 100%);
}

2 changes: 1 addition & 1 deletion _site/assets/css/just-the-docs-light.css.map

Large diffs are not rendered by default.

56 changes: 28 additions & 28 deletions _site/assets/js/search-data.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions _site/deployment/render.html
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ <h4 id="basic-settings">

<ul>
<li>In the top menu, click on <code class="language-plaintext highlighter-rouge">Dashboard</code> -&gt; <code class="language-plaintext highlighter-rouge">New</code> -&gt; <code class="language-plaintext highlighter-rouge">Web Service</code>.</li>
<li>In Git Provider, we paste the path to the Git repository we want to deploy. Click on <code class="language-plaintext highlighter-rouge">Connect</code>.</li>
<li>In Git Provider, we paste the path to the Git repository we want to deploy. If it doesn’t appear, hit the <code class="language-plaintext highlighter-rouge">Credentials</code> -&gt; <code class="language-plaintext highlighter-rouge">Configure GitHub</code> -&gt; select your GitHub user and give it permission with <code class="language-plaintext highlighter-rouge">Install</code>. You can choose whether you want access to all repositories or only to the <code class="language-plaintext highlighter-rouge">uvlhub_practicas</code> repository. It is up to you.</li>
<li>Click on <code class="language-plaintext highlighter-rouge">Connect</code>.</li>
<li>As <code class="language-plaintext highlighter-rouge">Name</code> we put <code class="language-plaintext highlighter-rouge">uvlhub_&lt;uvus&gt;</code>. For example, for the UVUS <code class="language-plaintext highlighter-rouge">drorganvidez</code>, the service name would be <code class="language-plaintext highlighter-rouge">uvlhub_drorganvidez</code>.</li>
<li>In <code class="language-plaintext highlighter-rouge">Project</code> we can create a new project named <code class="language-plaintext highlighter-rouge">uvlhub</code> (this step is not very relevant).</li>
<li>In <code class="language-plaintext highlighter-rouge">Language</code>, we will use <code class="language-plaintext highlighter-rouge">Docker</code> as the deployment system.</li>
Expand Down Expand Up @@ -411,7 +412,7 @@ <h4 id="environment-variables-configuration">
MARIADB_USER=&lt;CHANGE_THIS&gt;
MARIADB_PORT=&lt;CHANGE_THIS&gt;
MARIADB_PASSWORD=&lt;CHANGE_THIS&gt;
MARIADB_ROOT_PASSWORD=&lt;CHANGE_THIS&gt;
MARIADB_ROOT_PASSWORD=&lt;SAME_PASSWORD_OF_MARIADB_PASSWORD&gt;
WORKING_DIR=/app/
</code></pre></div></div>

Expand Down
5 changes: 3 additions & 2 deletions deployment/deployment_in_render.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ Since our app requires a specific configuration (install dependencies, scripts,
#### Basic Settings

- In the top menu, click on `Dashboard` -> `New` -> `Web Service`.
- In Git Provider, we paste the path to the Git repository we want to deploy. Click on `Connect`.
- In Git Provider, we paste the path to the Git repository we want to deploy. If it doesn't appear, hit the `Credentials` -> `Configure GitHub` -> select your GitHub user and give it permission with `Install`. You can choose whether you want access to all repositories or only to the `uvlhub_practicas` repository. It is up to you.
- Click on `Connect`.
- As `Name` we put `uvlhub_<uvus>`. For example, for the UVUS `drorganvidez`, the service name would be `uvlhub_drorganvidez`.
- In `Project` we can create a new project named `uvlhub` (this step is not very relevant).
- In `Language`, we will use `Docker` as the deployment system.
Expand All @@ -77,7 +78,7 @@ MARIADB_DATABASE=<CHANGE_THIS>
MARIADB_USER=<CHANGE_THIS>
MARIADB_PORT=<CHANGE_THIS>
MARIADB_PASSWORD=<CHANGE_THIS>
MARIADB_ROOT_PASSWORD=<CHANGE_THIS>
MARIADB_ROOT_PASSWORD=<SAME_PASSWORD_OF_MARIADB_PASSWORD>
WORKING_DIR=/app/
```

Expand Down
2 changes: 1 addition & 1 deletion tutorials/codacy.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Codacy is a static code analysis tool used to review code quality and ensure tha
## Get token from Codacy

- Go to [Codacy.com](https://www.codacy.com). Click the `Start free` button and then the `GitHub` button.
- Add your GitHub account. You must add permission to either all your repositories or the uvlhub repository. We recommend you choose the second option.
- Add your GitHub account. You must add permission to either all your repositories or the uvlhub repository. We recommend you choose the second option.
- Go to [Organizations](https://app.codacy.com/organizations) and choose your GitHub username.
- Go to `Repositories` and click on the repository you want to apply Codacy to.
- Go to `Settings` (the cogwheel) and go to `Integrations`.
Expand Down

0 comments on commit 4f6678b

Please sign in to comment.