- 1st, add production origin to git.
- Next, ssh to remote and do a git init
- Then on local git:
- git pull production master
- git push production master
version: "3" | |
services: | |
mysql: | |
image: 'mariadb:10' | |
ports: | |
- "3306:3306" | |
volumes: | |
- ./mariadb:/var/lib/mysql | |
environment: | |
- "MYSQL_ROOT_PASSWORD=root" |
# /etc/logrotate.d/web | |
# me = my username | |
# with max of 10MB | |
/home/me/web/log/production.log { | |
size 10M | |
copytruncate | |
create 0666 me | |
compress | |
rotate 4 | |
missingok |
www.example.com:80, www.example.com:443 { | |
tls self_signed | |
log /logs access.log | |
errors visible | |
proxy /assets nginx:80 | |
proxy / web:3000 | |
redir 301 { | |
if {>X-Forwarded-Proto} is http | |
/ https://{host}{uri} |
'use strict'; | |
import React, { Component, PropTypes } from 'react' | |
import { connect } from 'react-redux' | |
var input, wrapper | |
class StaticIframeComponent extends Component { | |
constructor(props) { |
//underscore | |
global._ = require('underscore') | |
//jquery | |
window.$ = window.jQuery = require("jquery") | |
//moment | |
window.moment = require('moment') |
//taming select2 | |
import React, { Component, PropTypes } from 'react' | |
import { connect } from 'react-redux' | |
var input = null | |
class SelectFieldComponent extends Component { | |
componentDidMount() { | |
//UserRoleForm.onRendered() |
// actions/action_signup.go //in action handler file | |
import ( | |
g "project/actions/shared" | |
"project/models" | |
"github.com/gobuffalo/buffalo" | |
// "github.com/pkg/errors" | |
// "fmt" | |
"project/actions/mailer/user" | |
) |
// in actions/app.go | |
/* | |
directory structure | |
app/ | |
locales/en-us.yaml | |
assets/js/locales/ | |
middleware/ | |
actions/tools | |
*/ | |
import( |
func Auth(c *revel.Controller) bool { | |
if LoggedInCheck() {//write your own | |
return true | |
} | |
email, pass, _ := c.Request.BasicAuth() | |
//login n password | |
//TODO check login here | |
//... | |