How can i check my .env with a "inside shell"
Hello, i want to know how can i enter into my container to check if the .env exist
13 Replies
Project ID:
0f5eadec-41b9-4d22-b1cf-efcaa05259b6
0f5eadec-41b9-4d22-b1cf-efcaa05259b6
Do Railway create a .env when i add something in service variable ?
Railway doesn't offer ssh
So there's no way to do that
I think it just adds it as an env variable in the docker container it created for your app
thanks for your reply
But i don't know how i can use this var in my php, because actually i need an .env to get this var
My API can't read env vars - Railway
hey, im trying to deploy a php-fpm api and i got a local .env file and i got the same .env at the railway project vars, but my api doesn't seem to be able to access it
My custom dockerfile:
```docker
FROM composer:2.4.4 AS composer
FROM php:7.4-fpm as base
COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN mv "$PHP_INI_DIR/php.ini-pro...
Solution
@Patrick〽
Ohhh just using $_SERVER['AWS_S3_ENV'] than $_ENV['AWS_S3_ENV'] ?
This is not solved x)
oh, why not? medim is a php developer and that was the answer in another thread.
what are you still having troubles with? railway will not make an .env file inside your container if that's what you're after?
Thanks for your answer !
So yes after couple of time, this solution just worked
Thanks a lot !
haha no problem