Skip to content
This repository was archived by the owner on May 8, 2021. It is now read-only.

Latest commit

History

History
84 lines (70 loc) 路 2.1 KB

File metadata and controls

84 lines (70 loc) 路 2.1 KB

K8sSymfonyReact


K8sSymfonyReact is ready-to-go boilerplate for a scalable Symfony application with a React frontend.

Prerequisites

The following tools should be available from your command line:

Start

Build and run your application, watching container logs:

docker-compose up --build

Build your assets:

yarn dev-server

Console

docker-compose exec php bin/console

Lint

Check code styles using linters:

yarn lint

Test

Test your application:

yarn test

Build

Build your application for production:

yarn build

Push

Push the build to your container registry:

yarn push

Requires docker to be configured for the container registry (example for Google Cloud).

The recommended way to do this is to authenticate a builder-system to the container-registry of your cloud project.

Release

Perform a rolling update to your production or staging, depending on current kubectl context (cluster and namespace):

yarn release

Requires a running Kubernetes cluster having the projects infrastructure set up.

Additionally you need to have a context configured for kubectl, that reflects the cluster and the desired namespace for this build.

Troubleshooting

When experiencing unexpected problems, refer to the troubleshooting section to update the requirements.

If that doesn't work; please create an issue.