Skip to content
Snippets Groups Projects
Commit f25e9a68 authored by Vincent Mazenod's avatar Vincent Mazenod
Browse files

enhance deployment

parent eaa08162
No related branches found
No related tags found
No related merge requests found
...@@ -36,3 +36,4 @@ deploy: ...@@ -36,3 +36,4 @@ deploy:
script: script:
- apt-get install -y --force-yes rsync - apt-get install -y --force-yes rsync
- rsync -az --exclude '_' -e ssh output/ $USERNAME@$HOST:~/public_html/ - rsync -az --exclude '_' -e ssh output/ $USERNAME@$HOST:~/public_html/
when: manual
# Blog LIMOS de Vincent Mazenod
## Installer les dépendances ```
./bin/setup
```bash source bin/activate
virtualenv -p /usr/bin/python3 .venv ./bin/start
source .venv/bin/activate
pip install -r requirements.txt
git submodule init
git submodule update --recursive --remote
``` ```
## Lancer le serveur de prévisualisation ## Lancer le serveur de prévisualisation
```bash ```
bash develop_server.sh start bash develop_server.sh start
``` ```
* http://0.0.0.0:8000/
## faire tourner les slides en local ## faire tourner les slides en local
```bash
cd content && npm install
``` ```
./bin/local
```bash
<VirtualHost *:80>
DocumentRoot "/opt/lampp/htdocs/limos/content"
ServerName slides
</VirtualHost>
``` ```
* http://slides/slides/
## see also ## see also
* [https://limos.isima.fr/~mazenod/blog-et-pages-perso-au-limos.html](https://limos.isima.fr/~mazenod/blog-et-pages-perso-au-limos.html) * [https://limos.isima.fr/~mazenod/blog-et-pages-perso-au-limos.html](https://limos.isima.fr/~mazenod/blog-et-pages-perso-au-limos.html)
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]:-$0}" )/.." && pwd )"
if [[ -z "$VIRTUAL_ENV" ]] || [[ "$VIRTUAL_ENV" != "${DIR}/.venv" ]] ; then
source "${DIR}/.venv/bin/activate"
fi
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]:-$0}" )/.." && pwd )"
if [[ ! -f "/etc/apache2/sites-available/slides.conf" ]] ; then
(
echo "<VirtualHost *:80>"
echo "DocumentRoot /var/www/html/blog/blog.limos.fr/content/"
echo "ServerName slides"
echo "</VirtualHost>"
) | sudo tee -a /etc/apache2/sites-available/slides.conf
sudo a2ensite slides
echo "127.0.0.1 slides" | sudo tee -a /etc/hosts
fi
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]:-$0}" )/.." && pwd )"
if [[ ! -d "${DIR}/.venv" ]] ; then
virtualenv -p /usr/bin/python3 "${DIR}/.venv"
fi
source "${DIR}/.venv/bin/activate"
pip install -r requirements.txt
git submodule init
git submodule update --recursive --remote
cd content && npm install
#!/usr/bin/env bash
bash develop_server.sh start
...@@ -5,7 +5,7 @@ docutils==0.13.1 ...@@ -5,7 +5,7 @@ docutils==0.13.1
feedgenerator==1.9 feedgenerator==1.9
Jinja2==2.9.5 Jinja2==2.9.5
lxml==3.7.3 lxml==3.7.3
Markdown==2.6.8 Markdown
MarkupSafe==0.23 MarkupSafe==0.23
packaging==16.8 packaging==16.8
pelican==3.7.1 pelican==3.7.1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment