Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
fix: updated firebase configs
Browse files Browse the repository at this point in the history
  • Loading branch information
supermurat committed May 11, 2019
1 parent 862bfb5 commit 8227782
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ script:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage -p . --token "$CODACY_PROJECT_TOKEN"
- if [[ "$TRAVIS_BRANCH" == "test" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then npm run deploy:prepare:test; else echo "!Skipped to run deploy:prepare:test!"; fi
- if [[ "$TRAVIS_BRANCH" == "test" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then firebase deploy --project super-murat-test --token "$FIREBASE_TOKEN" -m "Deploying by Travis CI - Build $TRAVIS_BUILD_NUMBER# $TRAVIS_BUILD_WEB_URL" --non-interactive; else echo "!Skipped to run firebase:deploy:test!"; fi
- if [[ "$TRAVIS_BRANCH" == "test" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then firebase deploy --project super-murat-test --token "$FIREBASE_TOKEN_TEST" -m "Deploying by Travis CI - Build $TRAVIS_BUILD_NUMBER# $TRAVIS_BUILD_WEB_URL" --non-interactive; else echo "!Skipped to run firebase:deploy:test!"; fi
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then npm run deploy:prepare:prod; else echo "!Skipped to run deploy:prepare:prod!"; fi
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then firebase deploy --project super-murat-prod --token "$FIREBASE_TOKEN" -m "Deploying by Travis CI - Build $TRAVIS_BUILD_NUMBER# $TRAVIS_BUILD_WEB_URL" --non-interactive; else echo "!Skipped to run firebase:deploy:prod!"; fi
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then firebase deploy --project super-murat-prod --token "$FIREBASE_TOKEN_PROD" -m "Deploying by Travis CI - Build $TRAVIS_BUILD_NUMBER# $TRAVIS_BUILD_WEB_URL" --non-interactive; else echo "!Skipped to run firebase:deploy:prod!"; fi
after_success:
- echo "!after_success!"
after_failure:
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ import { SearchBarComponent } from './widgets/search-bar/search-bar.component';
FormsModule,
NgbModule,

AngularFireModule.initializeApp(environment.firebaseConfig),
AngularFireModule.initializeApp(environment.firebase),
AngularFirestoreModule.enablePersistence(),
AngularFirestoreModule, // imports firebase/firestore, only needed for database features
AngularFireAuthModule, // imports firebase/auth, only needed for auth features,
Expand Down
15 changes: 8 additions & 7 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ export const environment = {
trackingIds: ['UA-8121050-6']
}
},
firebaseConfig: {
apiKey: 'AIzaSyAt3I_Wnzm7_iMsXG0rM77FPAcTEAFCRHs',
authDomain: 'supermurat-com.firebaseapp.com',
databaseURL: 'https://supermurat-com.firebaseio.com',
projectId: 'supermurat-com',
storageBucket: 'supermurat-com.appspot.com',
messagingSenderId: '200768028544'
firebase: {
apiKey: 'AIzaSyBVj-tYpt71UKnxWR-vQKvrBli_-_4Pwb0',
authDomain: 'super-murat-prod.firebaseapp.com',
databaseURL: 'https://super-murat-prod.firebaseio.com',
projectId: 'super-murat-prod',
storageBucket: 'super-murat-prod.appspot.com',
messagingSenderId: '130699905933',
appId: '1:130699905933:web:018d488d5454ec7a'
}
};
15 changes: 8 additions & 7 deletions src/environments/environment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ export const environment = {
trackingIds: ['UA-8121050-11']
}
},
firebaseConfig: {
apiKey: 'AIzaSyAt3I_Wnzm7_iMsXG0rM77FPAcTEAFCRHs',
authDomain: 'supermurat-com.firebaseapp.com',
databaseURL: 'https://supermurat-com.firebaseio.com',
projectId: 'supermurat-com',
storageBucket: 'supermurat-com.appspot.com',
messagingSenderId: '200768028544'
firebase: {
apiKey: 'AIzaSyDkD6ALB_-iPZET61nR97SAjLs25gPkkcQ',
authDomain: 'super-murat-test.firebaseapp.com',
databaseURL: 'https://super-murat-test.firebaseio.com',
projectId: 'super-murat-test',
storageBucket: 'super-murat-test.appspot.com',
messagingSenderId: '544136229746',
appId: '1:544136229746:web:b98d5ab00ff8a989'
}
};
15 changes: 8 additions & 7 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ export const environment = {
trackingIds: ['UA-8121050-11']
}
},
firebaseConfig: {
apiKey: 'AIzaSyAt3I_Wnzm7_iMsXG0rM77FPAcTEAFCRHs',
authDomain: 'supermurat-com.firebaseapp.com',
databaseURL: 'https://supermurat-com.firebaseio.com',
projectId: 'supermurat-com',
storageBucket: 'supermurat-com.appspot.com',
messagingSenderId: '200768028544'
firebase: {
apiKey: 'AIzaSyDkD6ALB_-iPZET61nR97SAjLs25gPkkcQ',
authDomain: 'super-murat-test.firebaseapp.com',
databaseURL: 'https://super-murat-test.firebaseio.com',
projectId: 'super-murat-test',
storageBucket: 'super-murat-test.appspot.com',
messagingSenderId: '544136229746',
appId: '1:544136229746:web:b98d5ab00ff8a989'
}
};

0 comments on commit 8227782

Please sign in to comment.