A
A
Artem2014-05-05 21:34:45
git
Artem, 2014-05-05 21:34:45

How can I set up git to hide a file from the public but still upload it to the production server?

I want to connect people to work with the repository, but at the same time hide the main settings file from the public. This can be done via .gitignore, but I want to load the version with the hidden file that only I can see when uploading the repository to the production server.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem, 2014-09-20
@4tm

I save the settings in .env, add it to .gitignore and run everything with foreman. On the server, settings are also stored in environment variables (I use heroku).

M
mc_dir, 2014-06-05
@mc_dir

git+papit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question