Comments (5)
You can pass `-c` to specify a different path for the deploy configuration 👍
Originally posted by @dhh in #75 (comment)
Try with:
mv config/deploy.yml .mrskrc
mrsk deploy -c .mrskrc
It doesn't work with mrsk init -c .mrskrc
though, so that's something thats needs a fix 🎉
config/deploy.yaml
is hardcoded here:
from kamal.
Thanks @kjellberg, missed that option. Let's park the idea of a .mrskrc
configuration file for now and see whether other usecases arrive that may warrant adding something like that in the future.
from kamal.
Hi @99linesofcode you metioned Laravel. Do you have some example repo integrating Kamal with Laravel. Thanks and sorry if this a bit off-topic on this issue
from kamal.
Hi @andresgutgon,
No example repository unfortunately but here's the gist of what I did to deploy a Laravel application succesfully:
- Create a base image that copies your source code into
/app
and host it on a container registry (for example on Github); - Add a healthcheck endpoint (i.e.
/up
). I've used Spatie's Laravel Health; - Define your
deploy.yml
and secrets; - Run Kamal. Here is the alias I used when it was still mrsk:
# mrsk
alias mrsk="docker run -it --rm -v $PWD:/workdir -v $HOME/.gitconfig:/root/.gitconfig -v $SSH_AUTH_SOCK:/ssh-agent -v /var/run/docker.sock:/var/run/docker.sock -e SSH_AUTH_SOCK=/ssh-agent ghcr.io/mrsked/mrsk:latest"
Below is an example of the deploy.yml
I used:
service: APP_NAME
image: GITHUB_ACCOUNT/IMAGE_NAME
servers:
- SERVER_IP
registry:
server: ghcr.io
username: 99linesofcode
password:
- MRSK_REGISTRY_PASSWORD
builder:
multiarch: false
healthcheck:
path: /up
port: 80
Good luck!
from kamal.
Thanks! I'll try and let you know
from kamal.
Related Issues (20)
- Kakam setup fails on blank aws ubuntu machine HOT 2
- Unsupported Key type `kamal env push`
- [1.7.3] Docker logs error HOT 5
- [1.7.3] undefined method `[]' for nil:NilClass HOT 5
- feat: adding support for docker capabilities HOT 2
- My app is not starting as its depend upon accessories (Redis). How we can start accessories first? HOT 2
- Wrong permissions on volumes HOT 5
- Problem with LetsEncrypt
- dotenv version is too old HOT 4
- kamal deploy failed HOT 4
- When I run kamal app logs -f, two lines of dates appear. Is there a way to remove one of them? HOT 1
- Support Earthly builder HOT 3
- kamal 1.8.1 fails to map a Docker port on deploy HOT 3
- Old containers never stop on deploy (container not unhealthy) HOT 8
- `kamal build push` fails Docker Hub auth with macOS alias HOT 2
- Issue: Kamal Not Loading `.env` When Deploying NextJS App HOT 3
- `kamal setup` fails with `ArgumentError: No database file specified. Missing argument: database` HOT 2
- Running setup on a specific role shouldn't setup accessories
- Add --config option for "docker buildx create"? To better support insecure registries.
- Support for blue/green deployments or workarounds
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 kamal.