Set subdomain for project and set URL for each deployment (#52)

* Display current deployment info in overview tab

* Add assign domain dialog box in deployments

* Add empty link for project settings in assign domain dialog box

* Use react router dom link

* Add sub domain to project entity

* Add deployment url with custom generated string

* Set nano id to deployment id

* Add sub domain while creating new project

* Use same id as in url

* Update readme steps for production build

* Update README

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
This commit is contained in:
nabarunandneeraj authored and GitHub committed 2024-02-05 14:56:28 +05:30
1 parent 0fdc2631ee
commit ac7064afa5
20 files changed
+460 -57

No files matched your search

+7 -3
View File
@@ -1,6 +1,6 @@
import {
Entity,
PrimaryGeneratedColumn,
PrimaryColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
@@ -27,8 +27,9 @@ enum Status {
@Entity()
export class Deployment {
@PrimaryGeneratedColumn()
id!: number;
// TODO: set custom generated id
@PrimaryColumn('varchar')
id!: string;
@ManyToOne(() => Project, { onDelete: 'CASCADE' })
@JoinColumn({ name: 'projectId' })
@@ -47,6 +48,9 @@ export class Deployment {
@Column('varchar')
title!: string;
@Column('varchar')
url!: string;
@Column({
enum: Environment
})
+3
View File
@@ -57,6 +57,9 @@ export class Project {
@Column('varchar')
icon!: string;
@Column('varchar')
subDomain!: string;
@CreateDateColumn()
createdAt!: Date;