-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Atualizando exemplos, script e INSTALL
- Loading branch information
Showing
4 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
Para criar o ambiente rode o script "install-django-env.sh" que se encontra na pasta | ||
"Mocambos_Portal_Local/script". | ||
"Mocambos_Portal_Local/script": | ||
|
||
./install-django-env.sh | ||
|
||
Para ativar o ambiente: | ||
|
||
source ~/VirtualEnvs/Mocambos_Portal/bin/activate | ||
|
||
Depois de ter ja criado e ativado o ambiente com virtualenv, crie uma aplicação django com o comando: | ||
python django-admin.py startproject NomeDoPortalLocal | ||
|
||
Copie e altere os arquivos "settings.py" e "urls.py" que encontra na pasta "Mocambos_Portal_Local/exemplos/" para | ||
a raiz da pasta que criou "NomeDoPortalLocal". | ||
|
||
Tem que verificar que todos os links estao certos. | ||
|
||
Agora precisa instalar os aplicativos especificos para entrar na rede de portais locais e compartilhar arquivos. | ||
Vamos instalar o "mmedia" e o "gitannex". Entre na pasta "~/VirtualEnvs/Mocambos_Portal/lib/python2.6/site-packages" e digite: | ||
git clone https://[email protected]/20/mmedia.git | ||
git clone https://[email protected]/20/gitannex.git | ||
|
||
Agora podem entrar na pasta do portal "NomeDoPortalLocal" e: | ||
criar a estrutura de pasta para os medias: | ||
mkdir -p media/gitannex/taina.mocambos.net/serialized | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters