Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy dev environment #8

Open
Blodir opened this issue Nov 19, 2024 · 0 comments
Open

Deploy dev environment #8

Blodir opened this issue Nov 19, 2024 · 0 comments
Assignees
Labels
chore A task that does not require development work

Comments

@Blodir
Copy link
Contributor

Blodir commented Nov 19, 2024

Backend:

First apt-get ghcup, then:

ghcup install ghc
ghcup install cabal

Set up project:

git clone https://github.com/luomus/laji-dmp.git
cd laji-dmp/laji-dmp-backend
cabal run

By default saves sqlite db to ./, but the path can be set with LAJI_DMP_DATABASE environment variable if needed. Port 4000. Might need to do a small code change to add env var for port.

Should route everything under the domain to the app.

Frontend:

Install node & vite, then:

npm ci
npm run build

Expose the contents of /dist. Route all routes under the domain to /dist/index.html.

@Blodir Blodir added the chore A task that does not require development work label Nov 19, 2024
@Blodir Blodir self-assigned this Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore A task that does not require development work
Projects
None yet
Development

No branches or pull requests

1 participant