github - Push dev assets to git and track them, but don't have them go live to staging/production? -
we develop website locally, includes uncompiled dev assets, before concatenating , minifying , pushing staging further testing.
the trouble is, dev assets pushed staging, , don't want that. but, want carry on committing , updating dev assets git because shared across our small team.
is there way separate out dev assets don't served staging , production servers, still pushed our repo?
this seems common problem, yet can't seem find information anywhere!
any greatly appreciated.
there no simple "git only" solution afaik. that's why web projects have builder compiles source (dev) files production site can "install" or "deploy". people don't use git update production. use git push dev files test server build , installed. , installation files moved further production server.
this works because can recreate version of dev files , rebuild installation files that. hence, it's redundant keep installation files in git, too.
if want keep development model, suggest create 2 git repos. first 1 contains dev files build scripts. build scripts copy results second git repo can pushed test/prod servers.
Comments
Post a Comment