Skip to content

Commit

Permalink
Merge branch 'release/0.1.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Nov 19, 2024
2 parents fc25d1b + 64b0224 commit 89b6023
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opsmaru-docs",
"type": "module",
"version": "0.1.10",
"version": "0.1.11",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
Expand Down
47 changes: 47 additions & 0 deletions src/content/docs/application/phoenix/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,51 @@ mix release

The build command for elixir projects and phoenix is actually the same `mix release`. The only difference is with phoenix you need to compile the assets. If you are not using phoenix simply comment out the un-necessary lines.



### App Name
When you generate an app whith underscore in the name for example axigbe_chat. You will get the follwing error
when deploying
```bash
cp: cannot stat '/home/runner/work/axigbe_chat/axigbe_chat/.apk/axigbecode/axigbe_chat/src/_build/prod/rel/axigbe-chat/*': No such file or directory
```
This error is due to `mix release`. When running `mix release` it will generate `_build/prod/rel/axigbe_chat/`
but the code generator is producing `_build/prod/rel/axigbe-chat/`

To fix this, you first have to change the `destinations:` config and the `binary` as well.
The destination folder becomes `_build/prod/rel/axigbe_chat/` and the binary should be `axigbe_chat`
not `axigbe-chat`

```bash
destinations:
- _build/prod/rel/axigbe_chat/*
```
and your run section should look like the following:

```bash
run:
name: axigbe-chat
commands:
- name: migrate
binary: axigbe_chat
call: "eval AxigbeChat.Release.Tasks.migrate"
- name: console
binary: axigbe_chat
call: remote
- binary: tail
call: -f -n 100 /var/log/axigbe-chat/current
name: logs
path: /usr/bin
services:
- name: web
binary: axigbe_chat
start:
call: start
```






Once you're happy merge your pull-request and the build process should begin.
1 change: 0 additions & 1 deletion src/content/docs/trouble-shooting/platform-provisioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ Your cluster may have been successfully provisioned, however sometimes there are
You can resolve these issues easily by [sshing into](/docs/infrastructure/accessing-your-cluster/) your node and rebooting it.



0 comments on commit 89b6023

Please sign in to comment.