/
viniswap.costaflores.com

viniswap.costaflores.com

Apache configuration

Configure the apache server on alpha to accept and redirect viniswap petitions:

Domain http://viniswap.costaflores.com

<VirtualHost *:80> ProxyPreserveHost On ProxyRequests Off ServerName viniswap.costaflores.com ProxyPass / http://10.112.48.25:2018/ ProxyPassReverse / http://10.112.48.25:2018/ ProxyPass /mtb19/ http://10.112.48.25:2019/ ProxyPassReverse /mtb19/ http://10.112.48.25:2019/ <Proxy *> Order deny,allow Allow from all </Proxy> CustomLog logs/viniswap.costaflores.com.log combined ErrorLog logs/viniswap.costaflores.com.error.log </VirtualHost>

App Installation on echo

Install NVM to upgrade NODE to an exact version

First install NVM:

[root@echo viniswap]# curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 12819 100 12819 0 0 17974 0 --:--:-- --:--:-- --:--:-- 17953 => Downloading nvm from git to '/root/.nvm' => Cloning into '/root/.nvm'... remote: Enumerating objects: 267, done. remote: Counting objects: 100% (267/267), done. remote: Compressing objects: 100% (242/242), done. remote: Total 267 (delta 31), reused 80 (delta 15), pack-reused 0 Receiving objects: 100% (267/267), 119.47 KiB | 0 bytes/s, done. Resolving deltas: 100% (31/31), done. => Compressing and cleaning up git repository => Appending nvm source string to /root/.bashrc => Appending bash_completion source string to /root/.bashrc => Close and reopen your terminal to start using nvm or run the following to use it now: export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion [root@echo viniswap]#

 

Once the nvm is installed, we install the v10.18 version of the node:

[root@echo viniswap]# nvm install 10.18 Downloading and installing node v10.18.1... Downloading https://nodejs.org/dist/v10.18.1/node-v10.18.1-linux-x64.tar.xz... ######################################################################## 100,0% Computing checksum with sha256sum Checksums matched! Now using node v10.18.1 (npm v6.13.4) Creating default alias: default -> 10.18 (-> v10.18.1) [root@echo viniswap]# node -v v10.18.1 [root@echo viniswap]#

Install YARN

Install VINISWAP

Follow instruccions of GitHub proyect on GitHub - openvino/viniswap

Clone the project:

 

Rename de new folder for MTB18 app:

 

Go to new folder:

 

Create .env file and paste configuration code for MTB18:

Finally install VINISWAP for MTB18

Start VINISWAP

Install VINISWAP for MTB19

Go to /opt/viniswap/ forder and clone again the project.

 

Rename de new folder for MTB19 app:

 

Go to new folder:

 

Create .env file and paste configuration code for MTB19:

 

Finally install VINISWAP for MTB19

Automate the viniswap app boot on echo

Create a user and group viniswap, and change ownership of everything in /opt/viniswap

Set up a systemctl service that starts the  /etc/systemd/system/viniswap-mtb18.service file:

 

 

 

Finally, reload the daemon list and to test and enable it to run on boot using this commands:

 

Enable the Service:

Restart the daemon

Start the service

Restart the service (to test)

Show logs



Related content

Viniswap 1.0
Viniswap 1.0
More like this
delta
More like this
charlie
charlie
More like this
Configuring wordpress
Configuring wordpress
More like this
quebec
quebec
More like this
Vinoblock: Implementation
Vinoblock: Implementation
More like this