Transform member's data into a git submodule instead of a symlink to another project in the parent directory #8
4
.gitmodules
vendored
Normal file
4
.gitmodules
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
[submodule "members-data"]
|
||||
path = members-data
|
||||
url = ssh://gitea@git.astrolabe.coop:2106/AstrolabeCAE/SiteWebAstrolabe_private.git
|
||||
branch = master
|
||||
@@ -9,12 +9,15 @@ Requirements :
|
||||
|
||||
### Install
|
||||
|
||||
1. Clone or fork this repo: `git clone ssh://gitea@git.astrolabe.coop:2106/AstrolabeCAE/SiteWebAstrolabe_public.git`
|
||||
2. Clone or fork the private repo containing members data in the same folder that SiteWebAstrolabe_public : `git clone ssh://gitea@git.astrolabe.coop:2106/AstrolabeCAE/SiteWebAstrolabe_private.git`
|
||||
1. Clone or fork this repo INCLUDING its submodule: `git clone --recurse-submodules ssh://gitea@git.astrolabe.coop:2106/AstrolabeCAE/SiteWebAstrolabe_public.git`
|
||||
3. `cd` into the project directory (SiteWebAstrolabe_public) and run `npm install`
|
||||
4. Once all the dependencies are installed run `npm start`
|
||||
5. Open your browser at `http://localhost:8080` and away you go!
|
||||
|
||||
If you don't have the members data (page /equipe), you may have done a simple (non-recursive) clone. In this case, populate with member data by running `git submodule update --init --recursive`. Also, check that you do have the rights for the https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe_private repository.
|
||||
|
||||
If you need to get the latest commits of the SiteWebAstrolabe_private repo, you can do a `git submodule update --remote`.
|
||||
|
||||
### Deploy
|
||||
|
||||
1. Copy paste deploy.js file in two new files `deploy-preprod.js`and `deploy-prod.js`
|
||||
|
||||
1
members-data
Submodule
1
members-data
Submodule
Submodule members-data added at 68ef49b2a9
@@ -52,13 +52,13 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe.git"
|
||||
"url": "git+https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe_public.git"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Yves Gatesoupe",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe/issues"
|
||||
"url": "https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe_public/issues"
|
||||
},
|
||||
"homepage": "https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe"
|
||||
"homepage": "https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe_public"
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
../../../SiteWebAstrolabe_private/profiles
|
||||
../../members-data/profiles/
|
||||
@@ -1 +1 @@
|
||||
../../SiteWebAstrolabe_private/members
|
||||
../members-data/members/
|
||||
@@ -48,7 +48,7 @@ https://www.6clones.fr/
|
||||
|
||||
__***Propriété Intellectuelle***__
|
||||
|
||||
Le site et le code source de ce site sont librement réuilisable sous [licence MIT](https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe/src/branch/master/LICENSE.txt) sauf les dossiers suivants et leur contenu :
|
||||
Le site et le code source de ce site sont librement réuilisable sous [licence MIT](https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe_public/src/branch/master/LICENSE.txt) sauf les dossiers suivants et leur contenu :
|
||||
|
||||
* src/members
|
||||
* src/images/astrolabe
|
||||
|
||||
@@ -23,7 +23,7 @@ Nous souhaitons donc mettre à disposition notre site pour une réutilisation et
|
||||
|
||||
N'hésitez donc pas à réutiliser notre code, et si c'est le cas nous apprécierions que vous nous le disiez via notre [formulaire de contact](#contact-form)
|
||||
|
||||
Pour obtenir le code de notre site, vous pouvez le récupérer via notre [repo GIT](https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe).
|
||||
Pour obtenir le code de notre site, vous pouvez le récupérer via notre [repo GIT](https://git.astrolabe.coop/AstrolabeCAE/SiteWebAstrolabe_public).
|
||||
|
||||
<br></br>
|
||||
|
||||
|
||||
@@ -82,6 +82,10 @@ a:not([class]):visited {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
.box-flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.align-center {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user