mirror of
https://github.com/tloncorp/landscape.git
synced 2025-01-05 23:56:54 +03:00
Merge pull request #35 from urbit/fix/deploy-readme
This commit is contained in:
commit
a2565434b5
19
README.md
19
README.md
@ -16,24 +16,7 @@ Regardless of what you run to develop, Vite will hot-reload code changes as you
|
||||
|
||||
## Deploying
|
||||
|
||||
To deploy, run `npm run build` which will bundle all the code and assets into the `dist/` folder. This can then be made into a glob by doing the following:
|
||||
|
||||
1. Create or launch an urbit using the -F flag
|
||||
2. On that urbit, if you don't already have a desk to run from, run `|merge %work our %base` to create a new desk and mount it with `|mount %work`.
|
||||
3. Now the `%work` desk is accessible through the host OS's filesystem as a directory of that urbit's pier ie `~/zod/work`.
|
||||
4. From the directory of grid you can run `rsync -avL --delete dist/ ~/zod/work/grid` where `~/zod` is your fake urbit's pier.
|
||||
5. Once completed you can then run `|commit %work` on your urbit and you should see your files logged back out from the dojo.
|
||||
6. Now run `=dir /=garden` to switch to the garden desk directory
|
||||
7. You can now run `-make-glob %work /grid` which will take the grid folder where you just added files and create a glob which can be thought of as a sort of bundle. It will be output to `~/zod/.urb/put`.
|
||||
8. If you navigate to `~/zod/.urb/put` you should see a file that looks like this `glob-0v5.fdf99.nph65.qecq3.ncpjn.q13mb.glob`. The characters between `glob-` and `.glob` are a hash of the glob's contents.
|
||||
9. If you're working at Tlon, you can upload this to our Google storage using `gsutil cp glob-*.* gs://bootstrap.urbit.org`. Otherwise any publicly available HTTP endpoint that can serve files should be sufficient for distributing the glob.
|
||||
10. Once you've uploaded the glob, you should then update the corresponding entry in the docket file that represents Landscape which currently resides at `pkg/garden/desk.docket-0`. Both the full URL and the hash should be updated to match the glob we just created, on the line that looks like this:
|
||||
|
||||
```hoon
|
||||
glob-http+['https://bootstrap.urbit.org/glob-0v5.fdf99.nph65.qecq3.ncpjn.q13mb.glob' 0v5.fdf99.nph65.qecq3.ncpjn.q13mb]
|
||||
```
|
||||
|
||||
11. This can now be safely committed and deployed.
|
||||
Deploys to internal moons are managed via github actions.
|
||||
|
||||
[react]: https://reactjs.org/
|
||||
[typescript]: https://www.typescriptlang.org/
|
||||
|
Loading…
Reference in New Issue
Block a user