Coder Social home page Coder Social logo

Comments (6)

stufisher avatar stufisher commented on August 20, 2024

You'll need to translate the api/.htaccess and client/.htaccess to nginx rewrite rules

I would usually setup
DocumentRoot = client
move api into client folder

Sorry i should add this to the install instructions!

from homie-control.

466 avatar 466 commented on August 20, 2024

Yeha, thanks for that hint, translating the rewrite rules did it, at least most of it :)
I used this online converter: https://timmehosting.de/htaccess-converter
which converted client/.htaccess into:

try_files $uri $uri/ /index.php$is_args$args;

so i added this to my nginx config:

location /
{
try_files $uri $uri/ /index.php$is_args$args;
}

using the setup you suggested.

So i can click the links and see the new pages, but on those, clicking any button, does not do anything ... .
e. g.
profile, add profile / add component
trigger, add property trigger / add sun trigger
schedule, add schedule

what actually does work is:
groups, add group

As you said, there are two htaccess files, client/ and client/api, perhaps this behavior is due to me only using the translated client/.htaccess ?

from homie-control.

stufisher avatar stufisher commented on August 20, 2024

What happens when you load
localhost/api ?

from homie-control.

466 avatar 466 commented on August 20, 2024

localhost/api
returns:

Page Not Found

The page you are looking for could not be found. Check the address bar to ensure your URL is spelled correctly. If all else fails, you can visit our home page at the link below.
Visit the Home Page

from homie-control.

466 avatar 466 commented on August 20, 2024

Some place special, i can see, what happens / what does not happen, if one clicks any of those buttons?

from homie-control.

stufisher avatar stufisher commented on August 20, 2024

Yes in chrome ctrl-alt-i brings up the developer console, then network tab to see what requests are being made. Sounds like your api is not configured either

from homie-control.

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.