简体   繁体   中英

Octopress blog as rails subdirectory, with github public repository

I am successfully running my octopress blog as rails subdirectory. My blog's source is a public repository in github and i added this repository as submodule in my rails app.

My question is - is it ok to keep blog's source as public github repo ? I mean, is there any reason to keep blog's source as private ? My website is doing good business. Is it safe to keep blog as public repo ?

Keep your database credential and other security credential file directory on gitignore file. It will keep secure your public repo. If you confused you can put your source on bitbucket private repo.

I am not sure if this is correct site/way for this question. Still, trying to answer.

If it is commercial code, you should go for private repo.

If you want to make it public, it will be visible to all. If you are okay with it, go for public and add your credential files, secure keys etc into .gitignore .

As I can understand that you are not sure about your code licensing, I would recommend you to use www.gitlab.com to make your repos private for FREE .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM