PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, January 26, 2022

[FIXED] Laravel Pusher uses old apikey only in aws -> how can I clear/ change it?

 January 26, 2022     amazon-ec2, angular, laravel, laravel-5, pusher     No comments   

Issue

I have an angular & laravel app that uses pusher. I changed the apiKey, secret etc in the .env in laravel. It works well on local but when I try on AWS EC2 the credentials are still the old ones:

$config = config('broadcasting.connections.pusher');
   dd($config) // gives old credentials only in staging/aws

I tried all the clearing: cache:clear, route:clear, route:cache config:clear config:cache optimize, view:clear

in the local and in the AWS-cli and it gave me the notification that everything was ok ('cleared!').

Is there a way to clear or set the .env through the AWS dashboard?

PS - the old credentials are no where to be found in the client & back side. Unless laravel itself is still storing the old credentials?


Solution

I went through the issue and turned out the .env was not updated to reflect the new keys



Answered By - AWS PS
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing