Urbanecm

Untitled

Aug 10th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 KB | None | 0 0
  1. testovaci@notebook:~/Dokumenty$ git clone https://github.com/urbanecm/teh-tracker.git
  2. Cloning into 'teh-tracker'...
  3. remote: Counting objects: 2748, done.
  4. remote: Compressing objects: 100% (51/51), done.
  5. remote: Total 2748 (delta 49), reused 55 (delta 25), pack-reused 2663
  6. Receiving objects: 100% (2748/2748), 416.97 KiB | 636.00 KiB/s, done.
  7. Resolving deltas: 100% (1894/1894), done.
  8. testovaci@notebook:~/Dokumenty$ cd teh-tracker/
  9. testovaci@notebook:~/Dokumenty/teh-tracker$ mkdir deploy
  10. testovaci@notebook:~/Dokumenty/teh-tracker$ virtualenv deploy/pyenv
  11. Running virtualenv with interpreter /usr/bin/python2
  12. New python executable in /home/testovaci/Dokumenty/teh-tracker/deploy/pyenv/bin/python2
  13. Also creating executable in /home/testovaci/Dokumenty/teh-tracker/deploy/pyenv/bin/python
  14. Installing setuptools, pkg_resources, pip, wheel...done.
  15. (pyenv) testovaci@notebook:~/Dokumenty/teh-tracker$ pip install -r support/requirements.txt #Nepoužívat sudo
  16. (výstup krácen)
  17. (pyenv) testovaci@notebook:~/Dokumenty/teh-tracker/trackersite$ wget -O settings.py https://vps.urbanec.cz/~urbanecm/settings.txt
  18. --2017-08-10 11:09:41-- https://vps.urbanec.cz/~urbanecm/settings.txt
  19. Překládám vps.urbanec.cz (vps.urbanec.cz)… 37.205.10.148
  20. Navazuje se spojení s vps.urbanec.cz (vps.urbanec.cz)|37.205.10.148|:443… spojeno.
  21. HTTP požadavek odeslán, program čeká na odpověď… 200 OK
  22. Délka: 4276 (4,2K) [text/plain]
  23. Ukládám do: „settings.py“
  24.  
  25. settings.py 100%[====================================================================================================================>] 4,18K --.-KB/s in 0s
  26.  
  27. 2017-08-10 11:09:41 (11,2 MB/s) – „settings.py“ uloženo [4276/4276]
  28. (pyenv) testovaci@notebook:~/Dokumenty/teh-tracker/trackersite$ mysql -u root -p
  29. Enter password:
  30. Welcome to the MySQL monitor. Commands end with ; or \g.
  31. Your MySQL connection id is 5
  32. Server version: 5.7.19-0ubuntu0.17.04.1 (Ubuntu)
  33.  
  34. Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
  35.  
  36. Oracle is a registered trademark of Oracle Corporation and/or its
  37. affiliates. Other names may be trademarks of their respective
  38. owners.
  39.  
  40. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  41.  
  42. mysql> create user 'DB_USER'@'localhost' identified by 'DB_PASS';
  43. Query OK, 0 rows affected (0.00 sec)
  44.  
  45. mysql> create database DB_NAME;
  46. Query OK, 1 row affected (0.00 sec)
  47.  
  48. mysql> grant all on DB_NAME.* to 'DB_USER'@'localhost';
  49. Query OK, 0 rows affected (0.00 sec)
  50.  
  51. mysql> quit
  52. Bye
  53. (pyenv) testovaci@notebook:~/Dokumenty/teh-tracker/trackersite$ python manage.py migrate
  54. Operations to perform:
  55. Synchronize unmigrated apps: staticfiles, customcomments, messages, users, sendfile
  56. Apply all migrations: django_comments, sessions, admin, sites, auth, contenttypes, tracker
  57. Synchronizing apps without migrations:
  58. Creating tables...
  59. Running deferred SQL...
  60. Installing custom SQL...
  61. Running migrations:
  62. Rendering model states... DONE
  63. Applying contenttypes.0001_initial... OK
  64. Applying auth.0001_initial... OK
  65. Applying admin.0001_initial... OK
  66. Applying contenttypes.0002_remove_content_type_name... OK
  67. Applying auth.0002_alter_permission_name_max_length... OK
  68. Applying auth.0003_alter_user_email_max_length... OK
  69. Applying auth.0004_alter_user_username_opts... OK
  70. Applying auth.0005_alter_user_last_login_null... OK
  71. Applying auth.0006_require_contenttypes_0002... OK
  72. Applying sites.0001_initial... OK
  73. Applying django_comments.0001_initial... OK
  74. Applying django_comments.0002_update_user_email_field_length... OK
  75. Applying django_comments.0003_add_submit_date_index... OK
  76. Applying sessions.0001_initial... OK
  77. Applying tracker.0001_initial... OK
  78. Applying tracker.0002_myisam_to_innodb... OK
  79. Applying tracker.0002_auto_20170712_2108... OK
  80. Applying tracker.0003_ticket_event_url... OK
  81. (pyenv) testovaci@notebook:~/Dokumenty/teh-tracker/trackersite$ python manage.py runserver
  82. Performing system checks...
  83.  
  84. System check identified no issues (0 silenced).
  85. August 10, 2017 - 11:15:32
  86. Django version 1.8.18, using settings 'settings'
  87. Starting development server at http://127.0.0.1:8000/
  88. Quit the server with CONTROL-C.
Add Comment
Please, Sign In to add comment