React Router 适用于本地计算机、Chrome,但不适用于 safari 和其他浏览器,
<Switch>
<Route exact path={"/"} component={Home} />
<Route path="/programs/:slug" component={Programs} />
<Route path="/page/:slug" component={Page} />
<Route component={NotFound} />
</Switch>
Run Code Online (Sandbox Code Playgroud)
这是我的代码,但它在开发模式下完美运行,没有错误,但在生产中,当我导航到programs/:slug 或 page/:slug 时,safari 给出 404 错误
I am new to docker, i have created my application and i want to send to another developer but i cant seem to run it running docker.
It says tables dont exist. I have read the docker doc but i dont get it.
The table are not created.
WHAT AM I DOING WRONG?
my dockerfile
FROM php:7.1-apache
RUN docker-php-ext-install pdo pdo_mysql
COPY ./dump.sql /docker-entrypoint-initdb.d/
Run Code Online (Sandbox Code Playgroud)
my docker-composer
version: '2'
volumes:
logs:
driver: local
services:
slim:
build: .
working_dir: /var/www
command: php …Run Code Online (Sandbox Code Playgroud)