5
5
- [ if it does not yet exist] make a directory virtual_environments in the home directory of the EC2
6
6
- [ if not yet done] pip install virtualenv
7
7
8
- for each project make a new virutal environment:
8
+ for each project make a new virtual environment:
9
9
```
10
10
cd /home/ec2-user/virtual_environments
11
11
@@ -25,32 +25,32 @@ mkdir [the_project_name_or_similar]
25
25
## IN PYCHARM
26
26
27
27
- \> preferences \> project_interpreter \> click the settings wheel and select "add"
28
- - select ssh intepreter and fill out details for the host and username, e.g:
28
+ - select ssh interpreter and fill out details for the host and username, e.g:
29
29
```
30
30
host = the EC2 IP
31
31
32
32
user = 'ec2-user'
33
33
```
34
34
- \> Next
35
- - give the path to the virtualenv execuatable e.g:
35
+ - give the path to the virtualenv executable e.g:
36
36
```
37
37
/home/ec2-user/virtual_environments/[project_venv_name]/bin/python
38
38
```
39
39
- edit name and append easy to understand project name to virtual_env name
40
40
- Apply and return to pycharm open screen
41
41
42
42
## Now in pycharm open screen create a new project
43
- - creat new project
44
- - Emter the project name
45
- - click the project intepreter tab
46
- - select existing intepreter
43
+ - create new project
44
+ - Enter the project name
45
+ - click the project interpreter tab
46
+ - select existing interpreter
47
47
- click the 3 dots and select ssh interpreter
48
- - select the virtual_envrionment added above remote virtual env
48
+ - select the virtual_environment added above remote virtual env
49
49
50
50
### Go to deployment tab in Pycharm
51
51
Note we only want one top level deployment setup per EC2. So either create by adding EC2 IP etc
52
52
or select previously created deployment for that EC2
53
- - hit auto dectect root path (should be /home/ec2-user)
53
+ - hit auto detect root path (should be /home/ec2-user)
54
54
- go to mappings tab
55
55
- add the project path (relative from root). e.g. /[ project_directory_name]
56
56
- check deployment options but defaults should be ok
0 commit comments