A simple test-project for Strapi/Vue combo.
- Install docker
- Create a strapi project to get the env variables
- Copy the
.env.examplefile to.envand fill in the env variables
- Run
npm run devin the project root
- Run
npm run prodin the project root
npm run logswill output the logsnpm run stopwill stop the environments
If you need to trigger a docker image rebuild, eg because you changed
the package.json file, this can be done with npm run rebuild:vue
(or strapi or mariadb). If you want to rebuild all images, that's as
easy as npm run rebuild
Currently it's a manual deploy:
fly deploy --build-arg PROD_STRAPI_HOST=https://your.hostname --build-arg VITE_STRAPI_API_KEY=the-key
First time you try to build, set PROD_STRAPI_HOST to http://localhost:1337 and
make sure you have your local strapi-host running.