kamaok

trademark-several-environment

Aug 10th, 2021 (edited)
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.13 KB | None | 0 0
  1. Sitename:
  2.   - Prod: https://trademark-classes.com
  3.   - Dev: https://dev.trademark-classes.com
  4.  
  5. SSH-connection settings:
  6.  
  7. Host: 78.47.102.139
  8. Port: 2222
  9. Username:
  10.   - Prod: trademark-prod
  11.   - Dev: trademark-dev
  12. Password: passwordless due to SSH-keys based connection
  13.  
  14. For Linux/MacOS-based operation system ssh connectin string:
  15. Prod: ssh -p2222 trademark-prod@78.47.102.139
  16. Dev: ssh -p2222 trademark-dev@78.47.102.139
  17.  
  18.  
  19. Gunicorn socket/service-file
  20.  
  21. Dev:
  22. # systemctl status gunicorn-trademark-dev.socket
  23. # sudo systemctl restart gunicorn-trademark-dev.socket
  24. # systemctl status gunicorn-trademark-dev.service
  25. # sudo systemctl restart gunicorn-trademark-dev.service
  26.  
  27. Prod:
  28. # systemctl status gunicorn-trademark-prod.socket
  29. # sudo systemctl restart gunicorn-trademark-prod.socket
  30. # systemctl status gunicorn-trademark-prod.service
  31. # sudo systemctl restart gunicorn-trademark-prod.service
  32.  
  33. Nginx virtual host
  34.  
  35. Dev: /etc/nginx/conf.d/dev.trademark-classes.com.conf
  36. Prod: /etc/nginx/conf.d/trademark-classes.com.conf
  37.  
  38. Check the syntax for Nginx virtual host
  39. # sudo nginx -t
  40.  
  41. Reload Nginx
  42. # sudo systemctl reload nginx
  43.  
  44.  
Add Comment
Please, Sign In to add comment