installed to the server

This commit is contained in:
Dooho Yi 2021-01-07 11:36:16 +09:00
parent ff122bede4
commit e4e0808cb1
21 changed files with 28 additions and 92 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

View file

@ -1,7 +0,0 @@
아. 일단 되서 다행이다.
포기한 것 보단, 낫지..
그치만, 너무 힘들었어. 흠..
이제 서버를 뒤에 두는 거 할 수 있게 되었어.
CNAME 이라던가. A record 같은걸 이용해서, dns를 더 확보해야 그만큼 서버를 둘 수가 있게 되는 것 같은데...

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

View file

@ -1 +0,0 @@
나는 너에게, 안녕! 하고.

View file

View file

@ -1,11 +0,0 @@
현상.
객체인가 현상인가.
창문밖에, 나무한그루가 있고, 초록빛깔 나뭇잎들위로 뜨거운 여름 햇볕이 쏟아져. 그 잎사귀들이 초록빛으로 빛나는 장면.
혹은 그런 현상을, 나는 목격한다. 목격이라는 현상. 눈이라는 장치에 초록의 빛의 광선들이, 에너지들이 쏟아져들어와서, 어디를 얼마만큼인지 모를, 신경에 광에너지 반응을 일으키고, 그것이 어째서인지, 머리속에서 2차원적인 공간에 대한 정보로, 바뀌어서 전달이 되는 시각이라는 현상.
그러나, 또한 그것을 자극이라고 받아들이면서, 그것이 머리속에서-라고 추정되는- 그곳의 사고-라는 현상을 통해서 아, 저것이 하나의 현상인가, 혹은 저것은 객체들의 집합인가 하는 질문아닌 질문을 불러일으키는 객체의 현상적 객체 관찰이라는 현상의 발생.
그러나, 그것이 사실은 저 나무와 우리의 머리와 우리의 마음-이라고 추정되는- 그것과 빛이라는 매체가 어떤 에너지들을 그저 주고 받는 현상. 즉, 마치, 나뭇잎에 빛에너지가 우주로 부터 쏟아지자, 그것들 중에 일부가 반사해서, 어느 구체의 공간에 들어와, 어느 생체전기회로에 자극이 되어, 그것이 무언가 복잡해보이는 신경다발의 집합체에 신호를 주고, 그에 따른 약간의 반응적 추가 전기신호가 발생하는 상황. 그렇게 다함께 한덩어리로 연결되어진 그러한 현상.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

View file

@ -1 +0,0 @@
yo.

View file

@ -1 +0,0 @@
나는 너에게, 안녕! 하고.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,38 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>player</title>
<script src="./.js/p5.min.js"></script>
<script src="./.js/p5.sound.min.js"></script>
</head>
<body>
<script>
var audio;
var loaded = false;
var timer;
function setup() {
noCanvas();
audio = createAudio("./.audio/sample.mp3", function() {
button = createSpan("▶️");
button.mouseClicked(function () {
audio.play();
});
button.style('cursor', 'pointer');
timer = createSpan(" 00:00:00");
createSpan(" / " + new Date(audio.duration() * 1000).toISOString().substr(11, 8));
loaded = true;
});
// audio.showControls();
// audio.elt.onplay = function () {
// console.log('onplay!');
// }
}
function draw() {
if (loaded) {
timer.html(" " + new Date(audio.time() * 1000).toISOString().substr(11, 8));
}
}
</script>
</body>
</html>

Binary file not shown.

View file

3
inst_deps.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/bash
pip install -r py3/requirements.txt

View file

@ -1,3 +1,2 @@
pillow
python-magic
markdown

1
run.sh
View file

@ -1,4 +1,3 @@
#!/bin/bash
pip install -r py3/requirements.txt
python run.py -d ./data/ -nf -s styles/dark.css --no-hidden --unfolding

View file

@ -0,0 +1 @@
@reboot sleep 60 && nohup /home/nextcloud/exp-dist-watcher.sh >> /home/nextcloud/exp-dist-watcher-sh.log 2>&1

View file

@ -0,0 +1,24 @@
#!/bin/bash
#set minimal required path
export PATH=$PATH:$HOME/.local/bin
#load pyenv of 'nextcloud' user
export PYENV_ROOT="/home/nextcloud/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
eval "$(pyenv virtualenv-init -)"
#load env for the proj. 'exp-dist'
pyenv shell exp-dist
#change directory
cd /home/nextcloud/expressive-distribusi
#start to watch..
./run.sh
while inotifywait -e modify,move,create,delete,close_write -r ./data/ ; do
./run.sh
done