L
L
likejavascript2013-03-05 19:48:52
git
likejavascript, 2013-03-05 19:48:52

How to properly deploy with git?

On my local machine, I have two branches master and develop. I develop new functionality on develop and periodically merge into master. When it is necessary to start master, some files and folders must be ignored. For example, all files from the assets folder (since the resources are collected using grunt-a in a different directory).

You can't add assets/* to .gitignore because it won't track changes to assets.
Please suggest some solution.

Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2013-03-05
@likejavascript

You can write a simple BASH script for deployment, and hang its execution on the push hook. There are many examples: here , here and here

M
megalol, 2013-03-06
@megalol

Is it impossible for assets to have your own turnip?

A
afiskon, 2013-03-06
@afiskon

In my opinion, git is still a version control system, and you need to deploy using deb or rpm.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question