forked from Hasil-Sharma/EmbryoWebsite
-
Notifications
You must be signed in to change notification settings - Fork 1
/
instructions.txt
50 lines (41 loc) · 1.78 KB
/
instructions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
1. [FIRST INSTALLATION]
Set up the virtual environment in the directory you have cloned this project.
Command:
1. virtualenv --system-site-packages . # NOTE: Here '.' indicates current directory
2. source bin/activate # Activates virtual environment [To deactivate, please use given command - "deactivate"]
3. ./bin/pip install -r requirements.txt # requirements.txt is a file that has all the dependencies used for the Embryo Website.
4. sudo apt-get install mysql-server # enter the MySQL root password.
5. Start mysql service -
sudo service start mysql
6. Start the MySQL shell -
mysql -host localhost -user <username> -p #<username> is generally root. Details refer: http://dev.mysql.com/doc/refman/5.5/en/connecting-disconnecting.html
[Enter Password]
7. Check if the database 'Embryo_test' already exists or not. Use foll cmd:
Show databases;
if exists,
Quit;
else
Create database Embryo_test;
Show databases;
Quit;
[PREVIOUSLY INSTALLED THEN START HERE]
2. Activate the virtual environment if not done.
source bin/activate
3. Import the Embryo database fro the server
Log in to Embryo Server.
Export the Database: mysql -u username -p <database-name> > <filename.sql>
ftp to your local system
Import to the database created earliar mysql -u username -p <database-name> < <filename.sql>
4. After setting create the Django tables:
python manage.py syncdb
5. Populate Embryo_test database:
python manage.py sqlall database
6. Create the admin superuser:
python manage.py createsuperuser
7. Run the server:
python manage.py runserver
8. git help:
http://www.gitguys.com/topics/adding-and-removing-remote-branches/
This should do it.
9. Take care of the media folders.
Make sure all folders are available.