Skip to content

Instantly share code, notes, and snippets.

@jsilvestre
Last active February 24, 2017 10:39
Show Gist options
  • Save jsilvestre/e347f88f09237a054ca134e3da9094bb to your computer and use it in GitHub Desktop.
Save jsilvestre/e347f88f09237a054ca134e3da9094bb to your computer and use it in GitHub Desktop.
Comment tester les applications Cozy v3
#############
|
| Pré-requis : node.js, yarn, docker
| Ajouter dans /etc/hosts : 127.0.0.1 app.cozy.local cozy.local files.cozy.local
|
#############
# Fais toi un dossier quelconque pour les apps v3, par exemple :
mkdir ~/cozy
mkdir ~/cozy/v3
cd ~/cozy/v3
# A ne faire qu'une fois
git clone https://github.com/cozy/cozy-files-v3.git files
git clone https://github.com/cozy/cozy-photos-v3.git photos
# Cette commande va télécharger la stack, mais te permettra aussi de la mettre à jour si besoin plus tard.
docker pull cozy/cozy-app-dev
#############
|
| Attention, pour l'instant on ne peut pas lancer les deux apps en même temps.
| Enfin si, mais je ne sais pas comment faire.
|
|#############
# ----------------------------------------
# Ensuite, quand tu veux lancer Files
cd files
git pull origin master
yarn install
yarn run watch:browser
# (Dans un autre onglet de ton terminal)
docker run --rm -it -p 8080:8080 -p 5984:5984 -v "~/cozy/v3/files/build":/data/cozy-app -v "$(pwd)/data/db":/usr/local/couchdb/data -v "$(pwd)/data/storage":/data/cozy-storage cozy/cozy-app-dev
# ---------------------------------------
# Et si tu veux lancer Photos
cd photos
git pull origin master
yarn install
yarn run watch:browser
# (Dans un autre onglet de ton terminal)
docker run --rm -it -p 8080:8080 -p 5984:5984 -v "~/cozy/v3/photos/build":/data/cozy-app -v "$(pwd)/data/db":/usr/local/couchdb/data -v "$(pwd)/data/storage":/data/cozy-storage cozy/cozy-app-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment