How to host your laravel project for free on railway.app

  Рет қаралды 10,216

Chukwuemeka Ochuba

Chukwuemeka Ochuba

Күн бұрын

Hosting your Laravel project for free on Railway is a straightforward process that allows you to deploy and manage your Laravel application with ease. Railway is a platform that simplifies deployment and hosting, providing developers with tools to streamline the process. This video is a step-by-step guide on how to host your Laravel project for free on Railway

Пікірлер: 83
@donmark2k
@donmark2k 10 ай бұрын
NIXPACKS_BUILD_CMD=composer install && php artisan optimize:clear && php artisan storage:link && php artisan migrate --force
@vouchuy9986
@vouchuy9986 8 ай бұрын
Hello, I run the php artisan storage:link command but it doesn't work correctly. I have to reconfigure the storage to upload, can you help me see? Here is my setup: drive.google.com/drive/folders/1T_rvhdLYu7uQ3ZofzsBbED8Yv7d0F6H9?usp=sharing
@cyber1714
@cyber1714 6 ай бұрын
Thank you so much for this tutorial, it really helped me out
@norseolee9043
@norseolee9043 7 ай бұрын
i have issue my SQL table is not mySQL database, should i just create manually?
@alimurrofid6556
@alimurrofid6556 6 ай бұрын
why can't my CSS styling using bootstrap doesn't work?
@Mohamed.G15
@Mohamed.G15 4 ай бұрын
Thanks for this helpful tutorial
@user-oq9ph2nc2z
@user-oq9ph2nc2z 7 ай бұрын
error: no start command could be found how to fix?
@africtv5842
@africtv5842 3 ай бұрын
thank you very much bro
@orapelengmathebula1406
@orapelengmathebula1406 9 ай бұрын
can you use the mysql db that in your localhost, is there way to upload it. I didnt use migrations
@donmark2k
@donmark2k 9 ай бұрын
then you have to manually create your database then
@enzofernandez2110
@enzofernandez2110 8 ай бұрын
Thanks!
@olamideabass5587
@olamideabass5587 6 ай бұрын
thank you for sharing your knowledge Emeka. I deployed a Laravel site with register functionality. it works well on laptops but I can't register or log in when I access the site through a mobile phone. it just bounces back. what could be the cause and possible solution? thanks
@donmark2k
@donmark2k 5 ай бұрын
Before you deployed, check if it is working on mobile version on your laptop
@Abdulrahman124
@Abdulrahman124 5 ай бұрын
should i create data database tables manually or they will be created automatically by php artisan migrate --force because with me thre are no tables were created
@donmark2k
@donmark2k 5 ай бұрын
They will be created automatically on migration
@PAPIDRIVE
@PAPIDRIVE 7 ай бұрын
Thank you
@bakasibruceto2466
@bakasibruceto2466 7 ай бұрын
Thank you for the wonderful tutorial but I have a slight issue, I was able to deploy, the backend is working but my frontend is not working, I am using laravel 10 and it uses vite to manage my css and js files
@sigitkhoirunnizam4295
@sigitkhoirunnizam4295 6 ай бұрын
The problem is the same as mine, sorry, has it been resolved ?
@hossamyousef8731
@hossamyousef8731 Ай бұрын
@@sigitkhoirunnizam4295 The problem is the same as mine, sorry, has it been resolved ?
@FCL00
@FCL00 7 ай бұрын
Hey there! I hope you're doing well. Just wanted to drop a question here, I've been having a bit of trouble with Tailwind CSS on Railway. It seems like there's something quirky going on, and my styles aren't behaving as expected. Any chance you could lend a hand or point me in the right direction? Thanks a bunch!
@donmark2k
@donmark2k 7 ай бұрын
Did you also use bootstrap in the project?
@FCL00
@FCL00 7 ай бұрын
@@donmark2k no i use tailwindcss in my project and i installed it using vite
@donmark2k
@donmark2k 7 ай бұрын
@@FCL00 If it has something to do with your design misbehaving in the browser then tailwindCSS is the culprit. You might be missing a line of code.
@jeffreysoza7910
@jeffreysoza7910 7 ай бұрын
You need a script like this: "build:css": "tailwindcss build -i path/to/your/tailwind-css-file -o public/build/any-name-for-tailwind-css", where -i indicates the input css of your project (in this case tailwind css), and -o the output, you need to place that line inside package.json, after that try running railway run npm run build:css and your tailwinds styles should work as expected now, that's the way i solved it, hope it works for you.
@sigitkhoirunnizam4295
@sigitkhoirunnizam4295 6 ай бұрын
@@jeffreysoza7910 Is it the same here as running npm run build or different, I also have the same problem I use laravel 10 and tailwindcss
@sammash9909
@sammash9909 8 ай бұрын
Thanks, this helped a lot. But please how can I view table contents of my database on the railway app after imputing data into it.
@donmark2k
@donmark2k 8 ай бұрын
click on view databse
@abdullahaflahaaslam2377
@abdullahaflahaaslam2377 10 ай бұрын
how about install npm sir? is there something wrong if i use this? NIXPACKS_BUILD_CMD= npm run build && composer install && php artisan optimize:clear && php artisan storage:link && php artisan migrate --force
@donmark2k
@donmark2k 10 ай бұрын
If your project uses Node.js and JavaScript-based tools for building and managing dependencies (common in front-end development), then use npm run build On the other hand, if your project is primarily a PHP-based application with Laravel then use composer install
@nigelandam8839
@nigelandam8839 4 ай бұрын
I have an app in one folder. Vite(react)(typescript) with laravel. How can I deploy it in the railway?
@hossamyousef8731
@hossamyousef8731 Ай бұрын
the same problem but i'm using livewire
@michaelmhizha4302
@michaelmhizha4302 6 ай бұрын
thanks brother
@cesarjoelsandovalalvarado1119
@cesarjoelsandovalalvarado1119 8 ай бұрын
Hello, I managed to deploy my project but when I access the link I get error 500 server error, what is the cause?
@bakasibruceto2466
@bakasibruceto2466 7 ай бұрын
try changing the APP_URL to the actual url you use to access project
@user-wo2tq7re5k
@user-wo2tq7re5k 8 ай бұрын
thank you and i want to ask u, how can i turn off the debug?
@donmark2k
@donmark2k 8 ай бұрын
I do not think so
@_risuwr
@_risuwr 4 ай бұрын
my css can't be loaded the link kept going http instead of https i don't know where to fix it help
@duypham-hc8pf
@duypham-hc8pf 3 ай бұрын
Same problem :(((.
@jamesadeyemo2516
@jamesadeyemo2516 9 ай бұрын
Thanks for this video sir... But im getting "deployment failed" after setup. What could be the problem?
@donmark2k
@donmark2k 9 ай бұрын
what exact error are you getting?
@jamesadeyemo2516
@jamesadeyemo2516 9 ай бұрын
8 | >>> RUN nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d 9 | 10 | COPY .nixpacks/assets /assets/ ------------------- ERROR: failed to solve: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1 Error: Docker build failed @@donmark2k
@JunLuden
@JunLuden 7 ай бұрын
ERROR: failed to solve: process "/bin/bash -ol pipefail -c composer install && yarn && yarn prod && php artisan optimize:clear && php artisan storage:link && php artisan migrate --force" did not complete successfully: exit code: 2@@donmark2k
@idongesit2173
@idongesit2173 5 ай бұрын
@@donmark2k Am having the same problems to which is " FAILED Deployment Failed during build process" after investigating i found out that it was because i was using php 8 that railway app stopped supporting php 8 and that i should use a lower version of php, so how can i down grade the php version on rail way app
@xbeast7585
@xbeast7585 5 ай бұрын
Thank You So Much Love You
@africtv5842
@africtv5842 3 ай бұрын
i saw you somewhere. u where like all this India guys with low camara and they end up solving your problems. in a India guy account that was teaching on firebase deployment
@xbeast7585
@xbeast7585 3 ай бұрын
@@africtv5842 umm i don't remember about a firebase development but yeah since i'm a really techy guy maybe you've seen me somewhere xD
@coolboss3530
@coolboss3530 7 ай бұрын
Sir please it didnt work for me does it work and also im not using laravel sail
@donmark2k
@donmark2k 7 ай бұрын
What stack are you using?
@coolboss3530
@coolboss3530 7 ай бұрын
@@donmark2k php laravel
@peterMwaura-rh3nm
@peterMwaura-rh3nm 9 ай бұрын
would you mind shairing your docker file?
@donmark2k
@donmark2k 9 ай бұрын
Please, I did not to use a Dockerfile for this Laravel application
@peterMwaura-rh3nm
@peterMwaura-rh3nm 9 ай бұрын
@@donmark2k , thanks I was able to deploy using docker.
@donmark2k
@donmark2k 9 ай бұрын
@@peterMwaura-rh3nm You are welcome
@2JZ-it8ug
@2JZ-it8ug 5 ай бұрын
hello sir no display on me, im using laravel and vuejs and tailwindcss
@donmark2k
@donmark2k 5 ай бұрын
What is the error
@2JZ-it8ug
@2JZ-it8ug 4 ай бұрын
@@donmark2k Chrashed :(( Can u help me to deploy my project in school I will give u a link
@2JZ-it8ug
@2JZ-it8ug 4 ай бұрын
@@donmark2k Crashed please help me:(( to deploy my project
@donmark2k
@donmark2k 4 ай бұрын
@@2JZ-it8ug what made it to crash?
@MorcolaSTK
@MorcolaSTK 7 күн бұрын
@@2JZ-it8ug resolveu?
@salaccarljosepht.8681
@salaccarljosepht.8681 Ай бұрын
500 SERVER ERROR when I acces my projects link
@a.r.s1411
@a.r.s1411 3 күн бұрын
did you manage to fix that? im getting it too
@salaccarljosepht.8681
@salaccarljosepht.8681 3 күн бұрын
@@a.r.s1411 just follow this tutorial, I hosted my project because of this kzfaq.info/get/bejne/a6yPmrWn0KnTfoE.html
@HungBui-tb8po
@HungBui-tb8po 4 ай бұрын
Thank u so much brooo
@hamohovhannisyan9587
@hamohovhannisyan9587 4 ай бұрын
dont free 5$/m
@gousejaheer3883
@gousejaheer3883 9 ай бұрын
i got this errors while deploying how to solve this ERROR: failed to solve: process "/bin/bash -ol pipefail -c composer install --ignore-platform-reqs" did not complete successfully: exit code: 255 Error: Docker build failed
@donmark2k
@donmark2k 9 ай бұрын
Here are some steps you can take to troubleshoot and resolve this issue: 1. Composer may require a sufficient amount of memory to execute certain tasks, especially if your project has many dependencies. You can try increasing the memory limit for Composer by running this on your command line 2. You can try clearing the Composer cache using the following command: . If you are building a Docker container, ensure that the Docker image you are using is set up correctly and includes all the required dependencies for your PHP and Composer setup. 4. You can add the `--verbose` flag to the `composer install` command to get more detailed output, which may help you pinpoint the issue: 5. If your project uses private repositories hosted on GitHub or other platforms, make sure your Docker environment has the necessary SSH keys or authentication tokens to access them.
@senshawb
@senshawb 9 ай бұрын
did you solve it?
@donmark2k
@donmark2k 9 ай бұрын
@@senshawb he was able to solve it
@ronytacatic1760
@ronytacatic1760 9 ай бұрын
When deploying I receive this error: ERROR: failed to solve: process "/bin/bash -ol pipefail -c composer install && php artisan optimize:clear && php artisan storage:link && php artisan migrate --force" did not complete successfully: exit code: 1 Error: Docker build failed
@donmark2k
@donmark2k 9 ай бұрын
It has something to do with docker
@datswhathezed5368
@datswhathezed5368 5 ай бұрын
same problem, any fixes?
@alhdrinskie
@alhdrinskie 5 ай бұрын
i have the same issue. how to fixed this ERROR: failed to solve: process "/bin/bash -ol pipefail -c composer install && php artisan optimize:clear && php artisan storage:link && php artisan migrate --force" did not complete successfully: exit code: 2
@naderkamal8298
@naderkamal8298 Ай бұрын
@@alhdrinskie I have the same problem did you solve this problem
Deploy Laravel applications fast and cheap
8:54
Andrew Schmelyun
Рет қаралды 23 М.
Deploy Laravel Project For Free With Free SSL Certificate.
21:13
Code With ERaufi
Рет қаралды 2,6 М.
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 43 МЛН
Heroku Is Dead, Here's What I Recommend
11:59
Theo - t3․gg
Рет қаралды 253 М.
3 Alternatives for Heroku's Free Tier - Full Stack & API Hosting
13:04
Traversy Media
Рет қаралды 216 М.
How to Deploy Laravel on Shared Hosting in 12 minutes
12:55
The Codeholic
Рет қаралды 62 М.
Deploy Laravel App To Production & Set Up Staging Environment
18:19
Program With Gio
Рет қаралды 23 М.
Infinity free hosting | Host your Laravel APP
9:01
iCodeZilla
Рет қаралды 85 М.
Laravel + Livewire todo app (and so much more)
16:41
Aaron Francis
Рет қаралды 37 М.
Deploy/Host Laravel Application Live Server in easy way - Hostinger
12:35
Why Don't We Have A Laravel For JavaScript?
12:36
Theo - t3․gg
Рет қаралды 92 М.
how to deploy laravel on railway.app with mysql for free
12:12
Brebes Dev
Рет қаралды 3,3 М.