Git Product home page Git Product logo

proto.vroy.ca's Introduction

proto.vroy.ca

This is the folder structure I am using to start new vroy.ca apps. It's easy to use:

cp -r proto.vroy.ca new-app.vroy.ca
cd new-app.vroy.ca
grep -r -i 'proto' * | grep 'vroy.ca' # To find all instances of proto that matches with the app name
# Replace all instances of proto where it's actually the app name to be the name of your new app

The same thing goes with everything in the rest of the documentation below, replace every instances of proto to be the name of the new app.

Git

On the server:

cd ~/repos/
mkdir proto.vroy.ca.git
cd proto.vroy.ca.git
git --bare init

cd ~/www/
git clone ~/repos/proto.vroy.ca.git
git remote add github [email protected]:exploid/proto.vroy.ca.git

Pushing and deploys

Since these are not critical websites, having an easy way to push from a local clone to the server and having the changes deployed can be fun. To set this up, I followed the instructions from this post: http://joemaller.com/990/a-web-focused-git-workflow/

In the bare repo we have to setup the following post-update hook ~/repos/proto.vroy.ca.git/hooks/post-update (make sure it's executable):

#!/bin/sh

cd $HOME/www/proto.vroy.ca || exit
unset GIT_DIR
git pull origin master
touch tmp/restart.txt

exec git-update-server-info

In the actual website version of the repo, we have to setup the following post-commit hook to avoid conflicts in the history when work is being done straight on the server. In ~/www/proto.vroy.ca/.git/hooks/post-commit (make sure it's executable), place the following:

#!/bin/sh

git push origin

proto.vroy.ca's People

Contributors

vroy avatar

Stargazers

Maxime Santerre avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.