-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: juliusmarminge <[email protected]>
- Loading branch information
1 parent
9a34ba8
commit 06b1bca
Showing
38 changed files
with
995 additions
and
63 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,5 @@ | ||
--- | ||
"create-t3-app": minor | ||
--- | ||
|
||
add more db options |
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
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
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
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
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
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
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,20 @@ | ||
import fs from "fs"; | ||
import path from "path"; | ||
|
||
import { PKG_ROOT } from "~/consts.js"; | ||
import { type Installer } from "~/installers/index.js"; | ||
|
||
export const dbContainerInstaller: Installer = ({ | ||
projectDir, | ||
databaseProvider, | ||
projectName, | ||
}) => { | ||
const scriptSrc = path.join( | ||
PKG_ROOT, | ||
`template/extras/start-database/${databaseProvider}.sh` | ||
); | ||
const scriptText = fs.readFileSync(scriptSrc, "utf-8"); | ||
const scriptDest = path.join(projectDir, "start-database.sh"); | ||
fs.writeFileSync(scriptDest, scriptText.replaceAll("project1", projectName)); | ||
fs.chmodSync(scriptDest, "755"); | ||
}; |
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
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
Oops, something went wrong.
06b1bca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
create-t3-app – ./www
create-t3-app-git-main-t3-oss.vercel.app
create-t3-app-t3-oss.vercel.app
create.t3.gg
beta.create.t3.gg
create-t3-app-nu.vercel.app
ct3.app
www.ct3.app
create.t3.wtf