Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
codebasics authored Feb 23, 2020
1 parent 16113d7 commit 01efeeb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions DataScience/BangloreHomePrices/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ ssh -i "C:\Users\Viral\.ssh\Banglore.pem" [email protected]
4. Now you need to copy all your code to EC2 instance. You can do this either using git or copy files using winscp. We will use winscp. You can download winscp from here: https://winscp.net/eng/download.php
5. Once you connect to EC2 instance from winscp (instruction in a youtube video), you can now copy all code files into /home/ubuntu/ folder. The full path of your root folder is now: **/home/ubuntu/BangloreHomePrices**
6. After copying code on EC2 server now we can point nginx to load our property website by default. For below steps,
1. Create this file ```/etc/nginx/sites-available/bhp.conf```. The file content looks like this,
1. Create this file /etc/nginx/sites-available/bhp.conf. The file content looks like this,
```
server {
listen 80;
server_name bhp;
root /home/ubuntu/BangloreHomePrices/client;
index app.html;
location /api/ {
rewrite ^/api(.*) $1 break;
proxy_pass http://127.0.0.1:5000;
}
server_name bhp;
root /home/ubuntu/BangloreHomePrices/client;
index app.html;
location /api/ {
rewrite ^/api(.*) $1 break;
proxy_pass http://127.0.0.1:5000;
}
}
```
2. Create symlink for this file in /etc/nginx/sites-enabled by running this command,
Expand Down

0 comments on commit 01efeeb

Please sign in to comment.