Code Monkey home page Code Monkey logo

Comments (10)

aouniradouan avatar aouniradouan commented on September 17, 2024

Can you reply please ?

from movie-app.

moaj257 avatar moaj257 commented on September 17, 2024

Hi @aouniradouan
I am actually using a free account of heroku. Hope it works now at your end.

from movie-app.

aouniradouan avatar aouniradouan commented on September 17, 2024

Hi @aouniradouan
I am actually using a free account of heroku. Hope it works now at your end.

I used it in my local server and there is a problem with it

from movie-app.

aouniradouan avatar aouniradouan commented on September 17, 2024

Illuminate\Http\Client\ConnectionException
cURL error 6: Could not resolve host: movie (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
https://one.chilya.com/moviez/public/

from movie-app.

moaj257 avatar moaj257 commented on September 17, 2024

Illuminate\Http\Client\ConnectionException
cURL error 6: Could not resolve host: movie (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
https://one.chilya.com/moviez/public/

Add the following to your .env file

TMDB_API_URL="https://api.themoviedb.org/3"
TMDB_BACKDROP_URL="https://image.tmdb.org/t/p/original"
TMDB_MEDIA_URL="https://image.tmdb.org/t/p/w780"
TMDB_NO_IMAGE_URL="/images/no-image.svg"
TMDB_POSTER_URL="https://image.tmdb.org/t/p/w500"
TMDB_PROFILE_URL="https://image.tmdb.org/t/p/w185"
TMDB_TOKEN="___YOUR_TMBD_TOKEN___"

I hope this will fix the issue.

In your local laravel app structure , Open the file config/services.php.

You will find all these environment variables.

And also open app/Http/Controllers/MoviesController.php, You will find config('services.tmdb.__***__'), these were used from the file config/services.php in your local laravel app structure.

from movie-app.

aouniradouan avatar aouniradouan commented on September 17, 2024

TMDB_API_URL="https://api.themoviedb.org/3"
TMDB_BACKDROP_URL="https://image.tmdb.org/t/p/original"
TMDB_MEDIA_URL="https://image.tmdb.org/t/p/w780"
TMDB_NO_IMAGE_URL="/images/no-image.svg"
TMDB_POSTER_URL="https://image.tmdb.org/t/p/w500"
TMDB_PROFILE_URL="https://image.tmdb.org/t/p/w185"
TMDB_TOKEN="___YOUR_TMBD_TOKEN___"

That very nice it work fine now but just css files is not loading how i can resolve this problem please

from movie-app.

moaj257 avatar moaj257 commented on September 17, 2024

I am not aware of what css issues you were facing.
Always try to upload a photo if possible.

from movie-app.

aouniradouan avatar aouniradouan commented on September 17, 2024

I am not aware of what css issues you were facing.
Always try to upload a photo if possible.

Check URL please and you will see : https://one.chilya.com/public/
Thank you :)

from movie-app.

moaj257 avatar moaj257 commented on September 17, 2024

What kind of server are you using?
Are you new to laravel hosting?

If your server does support htaccess, use the following for laravel web hosting

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>
    
    RewriteEngine On
    
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^ ^$1 [N]

    RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
    RewriteRule ^(.*)$ public/$1 

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ server.php

</IfModule>

Also use https://one.chilya.com/ for to open the site and not https://one.chilya.com/public/.

from movie-app.

aouniradouan avatar aouniradouan commented on September 17, 2024

What kind of server are you using?
Are you new to laravel hosting?

If your server does support htaccess, use the following for laravel web hosting

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>
    
    RewriteEngine On
    
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^ ^$1 [N]

    RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
    RewriteRule ^(.*)$ public/$1 

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ server.php

</IfModule>

Also use https://one.chilya.com/ for to open the site and not https://one.chilya.com/public/.

Thank You now every thing work fine <3

from movie-app.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.