Skip to content

Commit 25cdfbc

Browse files
committed
minor updates
1 parent d3c2b54 commit 25cdfbc

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

Diff for: deploy_cloud_and_AWS_notes/AWS_deploy_notes.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ general there are two options:
2121
1) make all your code locally and move across when ready for deploying
2222

2323
2) port map between your machine and the EC2 so you can code locally using jupyter or an
24-
IDE but the project is synced to the EC2. In this case the python kernal will generally be on
24+
IDE but the project is synced to the EC2. In this case the python kernel will generally be on
2525
the EC2 as will the data. This can be a necessity if the data-set must be stored in the cloud.
2626

2727
**I will make a separate document on connection and port forwarding for terminal users, with
@@ -82,7 +82,7 @@ From the main EC2 dashboard menu:
8282
- Action Menu >> Manage IP >> Allocate an Elastic IP
8383
- On the new screen select: Allocate
8484
- This makes a new Static (Elastic) IP address
85-
- Action Menu >> Associate Elastic IP >> From the Pulldown menu select the appropriate EC2 >> Select Associate
85+
- Action Menu >> Associate Elastic IP >> From the Pull-down menu select the appropriate EC2 >> Select Associate
8686

8787
The EC2 now has an IP address that will not change.
8888

Diff for: deploy_cloud_and_AWS_notes/mike_notes_remote_python_project_virtual_env_pycharm_EC2.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- [if it does not yet exist] make a directory virtual_environments in the home directory of the EC2
66
- [if not yet done] pip install virtualenv
77

8-
for each project make a new virutal environment:
8+
for each project make a new virtual environment:
99
```
1010
cd /home/ec2-user/virtual_environments
1111
@@ -25,32 +25,32 @@ mkdir [the_project_name_or_similar]
2525
## IN PYCHARM
2626

2727
- \> 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:
2929
```
3030
host = the EC2 IP
3131
3232
user = 'ec2-user'
3333
```
3434
- \> Next
35-
- give the path to the virtualenv execuatable e.g:
35+
- give the path to the virtualenv executable e.g:
3636
```
3737
/home/ec2-user/virtual_environments/[project_venv_name]/bin/python
3838
```
3939
- edit name and append easy to understand project name to virtual_env name
4040
- Apply and return to pycharm open screen
4141

4242
## 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
4747
- 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
4949

5050
### Go to deployment tab in Pycharm
5151
Note we only want one top level deployment setup per EC2. So either create by adding EC2 IP etc
5252
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)
5454
- go to mappings tab
5555
- add the project path (relative from root). e.g. /[project_directory_name]
5656
- check deployment options but defaults should be ok

Diff for: web_resource_links.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
- Here are some links to resources and software mentioned:
22

3-
- Anaconda python instalation: https://www.anaconda.com/distribution/
3+
- Anaconda python installation: https://www.anaconda.com/distribution/
44

55
- Bootstrap CSS: https://getbootstrap.com/
66

Diff for: workshop_intermediate_dashboard/intermediate_2.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
###################################################################################################
1717

1818
parser = argparse.ArgumentParser()
19-
parser.add_argument("-p", "--port", type=int, help='If port is given than app is deployed on that port otherwise debug=True')
19+
parser.add_argument("-p", "--port", type=int,
20+
help='If port is given than app is deployed on that port otherwise debug=True')
2021
args = parser.parse_args()
2122
if args.port:
2223
rserver_args={"host":"0.0.0.0","port":args.port}

0 commit comments

Comments
 (0)