Our Git Flow
We are using a simple git flow based on git flow and github flow. We have two branches develop and master.
develop is a representation of staging
master is a representation of production
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
function cpf | |
set CPF (curl -X POST -w "\n" -d "acao=gerar_cpf" -d "pontuacao=S" -s https://www.4devs.com.br/ferramentas_online.php) | |
if type -q pbcopy | |
echo $CPF | pbcopy; | |
echo "$CPF copied to clipboard" | |
else if type -q xclip | |
echo $CPF | xclip -selection clipboard; | |
echo "$CPF copied to clipboard" | |
else | |
echo $CPF |
image: ruby:2.5.1 | |
cache: | |
key: "$CI_COMMIT_REF_NAME" | |
untracked: true | |
variables: | |
POSTGRES_DB: dbname | |
POSTGRES_USER: dbuser | |
POSTGRES_PASSWORD: dbpass |
#!/usr/bin/env ruby | |
require 'net/http' | |
require 'json' | |
class Cloudflare | |
def initialize(email, key) | |
@email = email | |
@key = key | |
end |
<template> | |
<router-view></router-view> | |
</template> | |
<script> | |
export default { | |
name: 'App' | |
} | |
</script> |
'use strict' | |
import Vue from 'vue' | |
import axios from 'axios' | |
// Full config: https://github.com/axios/axios#request-config | |
// axios.defaults.baseURL = process.env.baseURL || process.env.apiUrl || ''; | |
// axios.defaults.headers.common['Authorization'] = AUTH_TOKEN; | |
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; |
const tailwindcss = require('tailwindcss') | |
const autoprefixer = require('autoprefixer') | |
const purgecss = require('@fullhuman/postcss-purgecss') | |
module.exports = { | |
plugins: [ | |
tailwindcss('./tailwind.js'), | |
autoprefixer({ | |
add: true, | |
grid: true |
<script type='text/x-handlebars' data-template-name='components/latest-topic-list-item'> | |
<table> | |
<tbody> | |
<tr data-topic-id={{topic.id}} class="{{if topic.archived 'archived'}}"> | |
<td class="main-link"> | |
<tr> | |
{{raw "topic-status" topic=topic}} | |
{{topic-link topic}} | |
{{#if topic.featured_link}} |
resources :courses, except: :show do | |
resources :chapters, except: :show do | |
resources :lessons, except: :show do | |
resources :attachments, except: :show | |
end | |
end | |
end |
We are using a simple git flow based on git flow and github flow. We have two branches develop and master.
develop is a representation of staging
master is a representation of production