Comments (6)
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.
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.
What happens when you load
localhost/api ?
from homie-control.
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.
Some place special, i can see, what happens / what does not happen, if one clicks any of those buttons?
from homie-control.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homie-control.