-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
32 additions
and
8 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
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash -e | ||
|
||
# load env vars from ${APP_DIR}/.env | ||
set -o allexport | ||
. ${APP_DIR}/.env | ||
set +o allexport | ||
|
||
echo "Installing Extensions" | ||
|
||
python -m venv ${APP_DIR}/venv | ||
source ${APP_DIR}/venv/bin/activate | ||
|
||
# Si estamos en el entorno de desarrollo ya esta montada la carpeta de la extension unckan | ||
# Para produccion hay que instalarlo desde el repositorio principal | ||
if [ "$IS_DEV_ENV" != "true" ] ; then | ||
# En este caso, el archivo pyproject.toml esta en una subcarpeta del repo, en | ||
# https://github.com/unckan/ckan-env/tree/start_extension/ckanext-unckan | ||
pip install git+https://github.com/unckan/ckan-env/tree/develop/ckanext-unckan.git#egg=ckanext-unckan | ||
# Instalar sus requerimientos | ||
pip install -r https://raw.githubusercontent.com/unckan/ckan-env/refs/heads/develop/ckanext-unckan/requirements.txt | ||
fi | ||
|
||
# PDF view https://github.com/ckan/ckanext-pdfview | ||
pip install git+https://github.com/ckan/ckanext-pdfview.git#egg=ckanext-pdfview | ||
|
||
echo "CKAN extensions installed" |