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