How to deploy Total Tour App: Front Part

Switch to master branch

git checkout master

Check HOST_URL app\src\settings.js file

cat settings.js

Edit app\package.json file:

  "name": "app",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "axios": "^0.18.0",
    "i18next": "^11.6.0",
    "i18next-browser-languagedetector": "^2.2.3",
    "onsenui": "^2.10.4",
    "react": "^16.4.1",
    "react-dom": "^16.4.1",
    "react-i18next": "^7.10.1",
    "react-onsenui": "^1.11.1",
    "react-scripts": "1.1.4",
    "react-state-util": "0.0.5",
    "react-sound": "^1.2.0"
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"

Build app

cd app
npm run build

Login to Docker Hub (First time)

docker login

Build docker images

cd .. (chdir to root folder of total-front project)
sudo docker build . -t bkinno/total_front:latest
sudo docker push bkinno/total_front

Go to portainer.kudosvn.com deploy stack

comments powered by Disqus