forked from Dokploy/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
197c979
commit 9aae7eb
Showing
12 changed files
with
818 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Lit Example | ||
|
||
This repository contains an example of Lit application that is deployed on Dokploy. | ||
|
||
|
||
1. **Use Git Provider in Your Application**: | ||
- Repository: `https://github.com/Dokploy/examples.git` | ||
- Branch: `main` | ||
- Build path: `/lit-simple` | ||
|
||
2. **Add Environment Variables**: | ||
- Navigate to the "Environments" tab and add the following variable: | ||
```plaintext | ||
NIXPACKS_START_CMD="pnpm run preview" | ||
``` | ||
|
||
3. **Click on Deploy**: | ||
- Deploy your application by clicking the deploy button. | ||
|
||
4. **Generate a Domain**: | ||
- Click on generate domain button. | ||
- A new domain will be generated for you. | ||
- You can use this domain to access your application. | ||
|
||
|
||
If you need further assistance, join our [Discord server](https://discord.com/invite/2tBnJ3jDJc). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite + Lit + TS</title> | ||
<link rel="stylesheet" href="./src/index.css" /> | ||
<script type="module" src="/src/my-element.ts"></script> | ||
</head> | ||
<body> | ||
<my-element> | ||
<h1>Vite + Lit</h1> | ||
</my-element> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "lite-simple", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc && vite build", | ||
"preview": "vite preview" | ||
}, | ||
"dependencies": { | ||
"lit": "^3.1.4" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^5.2.2", | ||
"vite": "^5.3.1" | ||
}, | ||
"vite": { | ||
"server": { | ||
"port": 3000 | ||
} | ||
} | ||
} |
Oops, something went wrong.