forked from mito-systems/sol-mem-gen
Part of https://www.notion.so/Option-to-post-paid-for-memes-to-twitter-x-18ca6b22d4728051804ef4f55065d5ba Reviewed-on: #15 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com> |
||
---|---|---|
.. | ||
.registry.env.example | ||
config.yml | ||
deploy.sh | ||
Dockerfile | ||
README.md |
Deploy
Setup
sol-mem-gen
-
Clone the repo:
git clone git@git.vdb.to:deep-stack/sol-mem-gen.git cd sol-mem-gen/deploy
-
Build registry CLI image:
docker build -t cerc/laconic-registry-cli . # Builds image cerc/laconic-registry-cli:latest
-
Configure
userKey
andbondId
in the registry CLI config:nano config.yml
-
Add configuration for registry operations:
cp .registry.env.example .registry.env # Fill in the required values nano .registry.env
-
Add configuration for the app:
curl -s https://git.vdb.to/deep-stack/sol-mem-gen/raw/branch/main/.env.example -o .app.env # Fill in the required values nano .app.env
sol-token-locker
-
Create a dir for
sol-token-locker
deployment:# In deployments dir mkdir sol-token-locker cd sol-token-locker
-
Follow instructions to setup the
sol-token-locker
stack insol-token-locker
directory
Run
sol-mem-gen
-
Update configuration for the app as required:
# In sol-mem-gen/deploy dir nano sol-mem-gen/.app.env
-
Deploy
sol-mem-gen
App:# In sol-mem-gen/deploy dir docker run -it \ -v ./:/app/deploy -w /app/deploy \ -e DEPLOYMENT_DNS=memes.markto.market \ cerc/laconic-registry-cli:latest \ ./deploy.sh
-
Check deployment logs on deployer UI: https://webapp-deployer-ui.apps.vaasl.io/
-
Visit deployed app: https://memes.markto.market
-
To redeploy the app (using https://git.vdb.to/deep-stack/sol-mem-gen
main
branch), repeat the previous steps
sol-token-locker
-
Update configuration for token locker as required:
# In deployments dir cd sol-token-locker nano sol-token-locker-deployment/config.env
-
Start the deployment:
laconic-so deployment --dir sol-token-locker-deployment start
-
Follow logs:
laconic-so deployment --dir sol-token-locker-deployment logs sol-token-locker -f
-
For updating the deployment:
# Stop the deployment laconic-so deployment --dir sol-token-locker-deployment stop # Update the config as required nano sol-token-locker-deployment/config.env # Re-start deployment laconic-so deployment --dir sol-token-locker-deployment start