Maremarsik
Can I share my database with someone
I am doing a test assignment now (looking for a job), and one of the demands is to share info on my DB in order for them to check what's there.
I am not really sure what I must do.
One of the options is to pass them DB variables. Is this the right way? Will they be able to see the content of the DB?
10 replies
Alpine.js button from standard Laravel Breeze package not working in prod
The weird thing is that it works perfectly locally.
But in production https://manul-shop-production.up.railway.app/profile (you can login under b@b email using 'bbbbbb' password) it doesn't.
"Delete account" button. Here is the code:
<x-danger-button
class="btn btn-danger"
x-data=""
x-on:click.prevent="$dispatch('open-modal', 'confirm-user-deletion')"
>{{ __('Delete Account') }}</x-danger-button>
<x-modal name="confirm-user-deletion" :show="$errors->userDeletion->isNotEmpty()" focusable>
.......some code
</x-modal>
Other buttons on this page using alpine.js work both locally and in production... But this one does nothing in production...48 replies
[Laravel] API Post & Delete methods don't work
a7c0ce23-6ecb-418f-a849-b0b7613e09a0
I've built a simple API on Laravel and deployed it on Railway. On localhost it works like a bliss, but for some reason when I am sending the same requests by Postman on my POST, DELETE (and probably PUT as well) endpoints on the Railway - it doesn't execute them! It acts as if I used GET method instead.
What might be the problem?
5 replies
DNS setting for sending email from Railway
I want to use Mailtrap email sendig service to send emails from my Railway-hosted web-site. In order to do that I have to change some DNS settings here on Railway (CNAME, SPF, DKIM, and DMARC ). Is it even possible here?
https://help.mailtrap.io/article/69-sending-domain-setup#domain%20verification
5 replies
Laravel app works but without DB and CSS
Project ID: e5ad79e4-c4f3-4ed9-81df-2556a6ae460e
I managed to deploy on Railway my Laravel app so it works, but in very basic form only. No styles are displayed, and database is also not working.
I am a new guy here, so some help would be much appreciated, 'cause no clear step-by-step tutorial how to deploy and debug deployments was found by me.
So, what I did: copied my .env file content into variables here using raw editor. I updated DB settings there, the values took from credentials of PostgreSQL I had attached to my project earlier.
For starting assigned "make start" command, which in my Makefile stands for
PHP_CLI_SERVER_WORKERS=5 php -S 0.0.0.0:$(PORT) -t public
After this, as I said, my app starts, the homepage is being displayed. But without any css, and when I go to other pages generated from DB the errors pop out as if tables were not generated (am I supposed to run php artisan migrate?)
16 replies
"403 Forbidden" on PHP Slim app
Project ID: e5ad79e4-c4f3-4ed9-81df-2556a6ae460e
New guy here.
It's my first little web-app made in PHP in Slim Framework. Works perfectly on my local nginx web-server, but for some reason spits out "403 Forbidden" after successful deployment here.
Please help.
3 replies