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

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

Пікірлер: 80

  • @cyber1714
    @cyber17145 ай бұрын

    Thank you so much for this tutorial, it really helped me out

  • @donmark2k
    @donmark2k10 ай бұрын

    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

  • @Mohamed.G15
    @Mohamed.G153 ай бұрын

    Thanks for this helpful tutorial

  • @enzofernandez2110
    @enzofernandez21107 ай бұрын

    Thanks!

  • @norseolee9043
    @norseolee90436 ай бұрын

    i have issue my SQL table is not mySQL database, should i just create manually?

  • @africtv5842
    @africtv58422 ай бұрын

    thank you very much bro

  • @PAPIDRIVE
    @PAPIDRIVE6 ай бұрын

    Thank you

  • @alimurrofid6556
    @alimurrofid65566 ай бұрын

    why can't my CSS styling using bootstrap doesn't work?

  • @michaelmhizha4302
    @michaelmhizha43025 ай бұрын

    thanks brother

  • @orapelengmathebula1406
    @orapelengmathebula14068 ай бұрын

    can you use the mysql db that in your localhost, is there way to upload it. I didnt use migrations

  • @donmark2k

    @donmark2k

    8 ай бұрын

    then you have to manually create your database then

  • @Abdulrahman124
    @Abdulrahman1244 ай бұрын

    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

    4 ай бұрын

    They will be created automatically on migration

  • @xbeast7585
    @xbeast75855 ай бұрын

    Thank You So Much Love You

  • @africtv5842

    @africtv5842

    2 ай бұрын

    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

    2 ай бұрын

    @@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

  • @salaccarljosepht.8681
    @salaccarljosepht.868119 күн бұрын

    500 SERVER ERROR when I acces my projects link

  • @user-oq9ph2nc2z
    @user-oq9ph2nc2z7 ай бұрын

    error: no start command could be found how to fix?

  • @olamideabass5587
    @olamideabass55875 ай бұрын

    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

    4 ай бұрын

    Before you deployed, check if it is working on mobile version on your laptop

  • @FCL00
    @FCL007 ай бұрын

    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

    6 ай бұрын

    @@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

    6 ай бұрын

    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

    5 ай бұрын

    @@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

  • @bakasibruceto2466
    @bakasibruceto24667 ай бұрын

    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

    5 ай бұрын

    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 ?

  • @sammash9909
    @sammash99098 ай бұрын

    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

  • @HungBui-tb8po
    @HungBui-tb8po3 ай бұрын

    Thank u so much brooo

  • @nigelandam8839
    @nigelandam88394 ай бұрын

    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

  • @_risuwr
    @_risuwr3 ай бұрын

    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

    2 ай бұрын

    Same problem :(((.

  • @abdullahaflahaaslam2377
    @abdullahaflahaaslam23779 ай бұрын

    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

    9 ай бұрын

    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

  • @user-wo2tq7re5k
    @user-wo2tq7re5k7 ай бұрын

    thank you and i want to ask u, how can i turn off the debug?

  • @donmark2k

    @donmark2k

    7 ай бұрын

    I do not think so

  • @cesarjoelsandovalalvarado1119
    @cesarjoelsandovalalvarado11197 ай бұрын

    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

  • @jamesadeyemo2516
    @jamesadeyemo25168 ай бұрын

    Thanks for this video sir... But im getting "deployment failed" after setup. What could be the problem?

  • @donmark2k

    @donmark2k

    8 ай бұрын

    what exact error are you getting?

  • @jamesadeyemo2516

    @jamesadeyemo2516

    8 ай бұрын

    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

    6 ай бұрын

    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

    4 ай бұрын

    @@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

  • @coolboss3530
    @coolboss35307 ай бұрын

    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

  • @2JZ-it8ug
    @2JZ-it8ug4 ай бұрын

    hello sir no display on me, im using laravel and vuejs and tailwindcss

  • @donmark2k

    @donmark2k

    4 ай бұрын

    What is the error

  • @2JZ-it8ug

    @2JZ-it8ug

    3 ай бұрын

    @@donmark2k Chrashed :(( Can u help me to deploy my project in school I will give u a link

  • @2JZ-it8ug

    @2JZ-it8ug

    3 ай бұрын

    @@donmark2k Crashed please help me:(( to deploy my project

  • @donmark2k

    @donmark2k

    3 ай бұрын

    @@2JZ-it8ug what made it to crash?

  • @peterMwaura-rh3nm
    @peterMwaura-rh3nm9 ай бұрын

    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

  • @hamohovhannisyan9587
    @hamohovhannisyan95874 ай бұрын

    dont free 5$/m

  • @gousejaheer3883
    @gousejaheer38839 ай бұрын

    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

    8 ай бұрын

    did you solve it?

  • @donmark2k

    @donmark2k

    8 ай бұрын

    @@senshawb he was able to solve it

  • @ronytacatic1760
    @ronytacatic17608 ай бұрын

    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

    8 ай бұрын

    It has something to do with docker

  • @datswhathezed5368

    @datswhathezed5368

    4 ай бұрын

    same problem, any fixes?

  • @alhdrinskie

    @alhdrinskie

    4 ай бұрын

    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

    21 күн бұрын

    @@alhdrinskie I have the same problem did you solve this problem