Comments (4)
The problem with the application key being in the environment is on deploying to Heroku. There is no way to generate it there. I actually use a .env.local.php
file when developing locally to set the environment when testing Heroku deployment before I push to master
.
Heroku does use an environmental variable for the database settings too, see app/config/heroku/database.php
.
If you have any suggestions on this, please make a PR.
from cachet.
I've never used Heroku, but I thought you could apply environment variables in the config file or dashboard from the site, as mention here.
'key' => $_ENV['APP_KEY'],
Then, if you're on Heroku or not you can just add an .env.php
file and you're good to go too.
Either way, if someone were to clone and deploy the application as of now, then it would be unsafe if the key didn't change.
If someone can confirm the Heroku environment part, that'd be great.
from cachet.
Sorry, yes, we could do that, getenv('APP_KEY')
. The problem is that the environment variable has to be set within app.json
.
What we could do though is (at least for Heroku) add a postdeploy
command for php artisan key:generate
which will change it in the file.
Locally it won't make a difference so we'd have to advise generating it before deploying Cachet on your servers.
from cachet.
I've now set Heroku deployment to generate the app key again.
from cachet.
Related Issues (20)
- This project is dead. Any recommendations for alternatives? HOT 5
- REPLACEMENT CHARACTER (U+FFFD) when posting an incident HOT 2
- cancel HOT 1
- Fork from okazanta-legacy (cachet) -> Laravel 10.x and PHP 8.1 and security fixes HOT 6
- Cachet 3.x Announcement HOT 1
- Please add demo page HOT 1
- Kindly raise beginner level issues HOT 1
- maintenance not displayed on the timeline HOT 6
- mail not working HOT 1
- Update docker HOT 16
- Can't install Cachet - version 2.4 HOT 3
- Atom feed sent with text/html as HTTP Content-Type HOT 2
- Maintenance planification does not appear into dashboard HOT 2
- How i install HOT 1
- Doesn't install anymore 2.4.1 HOT 1
- Error 500 HOT 6
- Docs page is missing items essential for installing HOT 1
- Adding subscriber failing with error 500 HOT 3
- Modifying The Email Templates HOT 1
- Mixed-Context blocking error by webrowser when attempting to place Cachet behind an SSL NGINX Proxy. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cachet.