Steps to deploy Node.js to VPS using PM2 and Github Actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| w.nr_atendimento, | |
| w.nm_pessoa_fisica, | |
| w.ie_triagem, | |
| w.ie_consulta, | |
| w.ie_medicacao, | |
| w.ie_laboratorio, | |
| w.ie_imagem, | |
| case | |
| when ((w.ie_medicacao = 'Não Solicitado' or w.ie_medicacao = 'Medicação Liberada') and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Introduction | |
| For an introduction to Git and how to install, please refer to the introduction tutorial. | |
| This article will teach you how to use Git when you want to deploy your application. While there are many ways to use Git to deploy our application, this tutorial will focus on the one that is most straightforward. I assume you already know how to create and use a repository on your local machine. If not, please refer to this tutorial. | |
| When you use Git, the workflow generally is toward version control only. You have a local repository where you work and a remote repository where you keep everything in sync and can work with a team and different machines. But you can also use Git to move your application to production. | |
| Server Setup | |
| Our fictitious workspace: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.9" | |
| services: | |
| database: | |
| image: postgres | |
| container_name: database_prismaio | |
| restart: always | |
| ports: | |
| - 5434:5432 | |
| environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Fluxo de Trabalho no Git | |
| ======================== | |
| Primeiro crie um branch de desenvolvimento no seu repositório local: | |
| $ git checkout --track origin/development | |
| 1. Trabalhe em sua tarefa, continuamente comitando em intervalos regulares para manter | |
| o rastro daquilo que você fez. |
This gist assumes:
- you have an online remote repository (github / bitbucket etc.)
- you have a local git repo
- and a cloud server (Rackspace cloud / Amazon EC2 etc)
- your (PHP) scripts are served from /var/www/html/
- your webpages are executed by Apache
- the Apache user is named
www-data(may beapacheon other systems)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 20210323111922 | |
| // https://gist.githubusercontent.com/hatus/46557160905c78fb402b611b41104868/raw/8226569c104dc5f2ebc826319e1742d13a3a0a0b/settings.json | |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "defaultProfile": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}", | |
| "copyOnSelect": true, | |
| "copyFormatting": false, | |
| "initialRows": 22, | |
| "initialCols": 73, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| config: { | |
| // choose either `'stable'` for receiving highly polished, | |
| // or `'canary'` for less polished but more frequent updates | |
| webGLRenderer: false, | |
| updateChannel: "stable", | |
| paneNavigation: { | |
| debug: false, | |
| hotkeys: { | |
| navigation: { |
