-
Notifications
You must be signed in to change notification settings - Fork 4
Deploying From Master
Roberto Sanchez edited this page Oct 20, 2018
·
1 revision
The following is from the PDF of Deployment Notes.pdf.
Once the deadline has been reached we are not allowed to modify the master branch of our application. Some changes where needed to fully work on a production server.
The following files need to be modified (from master branch):
- On Client
- Chat.vue (src/components/UserProfile/)
- Follows.vue (src/components/UserProfile/)
- User.js (src/store/modules/)
- Request.js (src/store/modules/)
- Index.js (src/router/)
- MainNavBar.vue (src/components/NavBar/)
- On Server
- Web.config (Whatfits/server/server/)
-
Chat.vue
- Line 59:
-
BEFORE:
-
this.ws = new webSocket( 'ws://localhost/server/v1/chat/connect'+'?username=' + this.onlineUser)
-
-
AFTER:
-
this.ws = new webSocket('wss://www.whatfits.social/server/v1/chat/connect'+'?username=' + this.onlineUser)
-
-
- Line 59:
-
Follows.vue
- Line 35:
-
BEFORE:
-
url:'http://localhost/server/v1/follows/Addfollows',
AFTER:
-
url:'https://www.whatfits.social/server/v1/follows/Addfollows',
-
-
- Line 64:
-
BEFORE:
-
url: 'http://localhost/server/v1/follows/Deletefollows',
-
-
AFTER:
-
url: 'https://www.whatfits.social/server/v1/follows/Deletefollows',
-
-
- Line 94:
-
BEFORE:
-
url: 'http://localhost/server/v1/follows/Isfollows',
-
-
AFTER:
-
url: 'https://www.whatfits.social/server/v1/follows/Isfollows',
-
-
- Line 35:
-
IN STORE (src/store/modules/)
-
Request.js
- Line 3:
-
BEFORE:
-
'Access-Control-Allow-Origin' : 'http://localhost:8080' ,
-
-
AFTER:
-
'Access-Control-Allow-Origin' : 'https://www.whatfits.social' ,
-
-
- Line 9:
-
BEFORE:
-
url: 'http://localhost/server/'
-
-
AFTER:
-
url: 'https://www.whatfits.social/server/'
-
-
- Line 3:
-
User.js
- Line 8:
-
BEFORE:
-
profilepicture: 'http://localhost/images/profileImages/' ,
-
-
AFTER:
-
profilepicture: 'https://www.whatfits.social/images/profileImages/' ,
-
-
- Line 8:
-
-
**In ROUTER folder **
-
Index.js
- Line 12:
-
Before:
-
mode: 'history',
-
-
After:
-
//mode: 'history',
-
-
- Line 12:
-
-
MainNavBar.vue
- Line 87: Allow to go back to your profile from mainnavbar
-
Before:
-
this.$router.push('/profile')
-
-
After:
-
this.$store.dispatch('actviewprofile',{ ViewProfile: this.$store.getters.getusername }) location.reload () this.$router.push('/profile' )
-
-
- Line 87: Allow to go back to your profile from mainnavbar
-
In Server
-
Web.Config
-
Before
-
<connectionStrings> <add name="WhatfitsDb" providerName="System.Data.SqlClient" connectionString="Data Source=tcp:webapp491a.database.windows.net,1433;Initial Catalog=WhatfitsDb;Persist Security Info=False;UserID=(See Key);Password=(See Key);MultipleActiveResultSets=False;Encryp t=True;TrustServerCertificate=False;Connection Timeout=30;"/> </connectionStrings>
-
-
After
-
<!-- SQL Connection String for Azure Database. -Rob --> < connectionStrings > < add name = "WhatfitsDb" providerName = "System.Data.SqlClient" connectionString = "Data Source=tcp:webapp491a.database.windows.net,1433;Initial Catalog=WhatfitsDb;Persist Security Info=False;User ID=(See Key);Password=(See Key);MultipleActiveResultSets=False;Encryp t=True;TrustServerCertificate=False;Connection Timeout=30;" /> </ connectionStrings >
-
-
-