README.org
June 26, 2023 · View on GitHub
#+title: cl-wnbrowser
This is CL-WNBROWSER, a webinterface for the OpenWordnet-PT dataset. It is currently running at http://openwordnet-pt.org
See also the OpenWordnet-PT project: https://github.com/own-pt/openWordnet-PT
- Dependencies
- SBCL
- https://quicklisp.org/
- https://github.com/own-pt/clesc.git
- https://github.com/own-pt/graph-algorithms.git
See the ASD file.
- License
See the file LICENSE for details.
-
The ElasticSearch
Using the ES from IBM Cloud...
-
Install
See the Dockerfile and CODE-ENGINE.md
-
Load no cl-wnbrowser e inicializacao do servidor
#+begin_src lisp (ql:quickload :cl-wnbrowser) (cl-wnbrowser::start-server 8080) #+end_src
If lisp files changed, you can try loading them again. This may not work, given the dependencies between the different files. The safest option is to simply reload the application.
If only templates changed, you can safely update the application by switching to the =CL-WNBROWSER= package and executing the =(SETUP-TEMPLATES)= method.
- Deploy
The Dockerfile is used to deploy the app in the IBM Cloud Code Engine.
- Crie um projeto no Code Engine
- Crie um Secret no Code Engine
- Adicione
ES_PASSWORDcomo uma variável de ambiente e preencha seu valor; - Adicione
ES_URLcomo uma variável de ambiente e preencha seu valor; - Adicione
ES_USERcom o usuário do ES; - Adicione
GITHUB_CLIENT_IDcomo uma variável de ambiente e preencha seu valor; - Adicione
GITHUB_CLIENT_SECRETcomo uma variável de ambiente e preencha seu valor; - Adicione
OWNPT_BASE_URLcom seu valor - Adicione
OWNPT_ACCOUNTS_ADMINcom valores separados por colon - Adicione
OWNPT_ACCOUNTS_VOTEcom valores separados por colon
- Adicione
- Com o Secret criado, crie uma nova aplicação
- Insira o endereço da sua imagem no formulário de criação.
- Defina pelo menos uma instância ativa
- Defina o secret criado no passo 2 como variaveis de ambiente
- Verifique e defina que a porta exposta seja a 8080
- Clique em criar
- Em intantes sua instancia deve estar dísponível para ser acessada.