Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sweepstake
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arjun Jhukal
sweepstake
Commits
f3c836db
Commit
f3c836db
authored
Feb 03, 2026
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udpate the new lable for photo id number and also updated the apple file
parent
a8626cc3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
73 additions
and
155 deletions
+73
-155
deploy.yml
.github/workflows/deploy.yml
+23
-127
ecosystem.config.js
ecosystem.config.js
+35
-23
apple-developer-merchantid-domain-association
public/apple-developer-merchantid-domain-association
+0
-0
index.tsx
src/components/pages/auth/register/index.tsx
+2
-2
index.tsx
...ponents/pages/dashboard/userDashboard/verifyKyc/index.tsx
+3
-3
vercel.json
vercel.json
+10
-0
No files found.
.github/workflows/deploy.yml
View file @
f3c836db
...
...
@@ -6,44 +6,27 @@ on:
-
main
jobs
:
build-and-
deploy
:
deploy
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v4
-
name
:
Setup Node
-
name
:
Setup Node
(for lint only)
uses
:
actions/setup-node@v4
with
:
node-version
:
20
cache
:
"
npm"
-
name
:
Cache node modules
uses
:
actions/cache@v4
with
:
path
:
|
~/.npm
node_modules
.next/cache
key
:
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys
:
|
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
${{ runner.os }}-nextjs-
-
name
:
Install dependencies
run
:
npm ci --prefer-offline --no-audit
-
name
:
Lint
run
:
npm run lint
-
name
:
Build project
run
:
npm run build
env
:
NODE_ENV
:
production
NEXT_PUBLIC_BASE_URL
:
${{ secrets.NEXT_PUBLIC_BASE_URL }}
NEXT_PUBLIC_FRONTEND_URL
:
${{ secrets.NEXT_PUBLIC_FRONTEND_URL }}
NEXT_PUBLIC_GTM_ID
:
${{ secrets.NEXT_PUBLIC_GTM_ID }}
# ❌ NO BUILD HERE
# Build happens on server
-
name
:
Setup SSH
run
:
|
...
...
@@ -52,97 +35,47 @@ jobs:
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
-
name
:
Deploy
build
to server
-
name
:
Deploy
source
to server
run
:
|
rsync -avz --delete \
--exclude '.git' \
--exclude '.env*' \
--exclude 'node_modules' \
--exclude 'conf' \
--exclude 'logs' \
--exclude 'ssl' \
--exclude 'tmp' \
--exclude 'private_html' \
--exclude 'public_html' \
./ \
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:/home/1522942.cloudwaysapps.com/s
wsjapwyjk
/
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:/home/1522942.cloudwaysapps.com/s
egekvheuz
/
-
name
:
Restart application
-
name
:
Build & Restart on Server
run
:
|
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF'
# Load NVM
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# Go to app directory
cd /home/1522942.cloudwaysapps.com/swsjapwyjk
# Install dependencies (production only, no dev dependencies)
npm ci --prefer-offline --no-audit --production=false
# Reload or start PM2
pm2 reload ecosystem.config.js --update-env --env production || \
pm2 start ecosystem.config.js --env production
# Save PM2 process list
cd /home/1522942.cloudwaysapps.com/segekvheuz
# Install dependencies
npm ci --no-audit
# Build production app
NODE_ENV=production npm run build
# Restart PM2 safely
pm2 reload ecosystem.config.js --update-env || \
pm2 start ecosystem.config.js
pm2 save
# Show status
pm2 list
EOF
-
name
:
Notify Slack on Success
if
:
success()
uses
:
slackapi/slack-github-action@v1.27.0
with
:
payload
:
|
{
"text": "✅ getFirekirin Deployment Successful!",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "✅ getFirekirin Deployment Successful"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Repository:*\n${{ github.repository }}"
},
{
"type": "mrkdwn",
"text": "*Branch:*\n${{ github.ref_name }}"
},
{
"type": "mrkdwn",
"text": "*Commit:*\n<${{ github.event.head_commit.url }}|${{ github.sha }}>"
},
{
"type": "mrkdwn",
"text": "*Author:*\n${{ github.actor }}"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Message:* ${{ github.event.head_commit.message }}"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "Deployed to production at <!date^${{ github.event.head_commit.timestamp }}^{date_num} {time_secs}|${{ github.event.head_commit.timestamp }}>"
}
]
}
]
"text": "✅ getFirekirin Deployment Successful!"
}
env
:
SLACK_WEBHOOK_URL
:
${{ secrets.SLACK_WEBHOOK_URL }}
...
...
@@ -154,44 +87,7 @@ jobs:
with
:
payload
:
|
{
"text": "❌ getFirekirin Deployment Failed!",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "❌ getFirekirin Deployment Failed"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Repository:*\n${{ github.repository }}"
},
{
"type": "mrkdwn",
"text": "*Branch:*\n${{ github.ref_name }}"
},
{
"type": "mrkdwn",
"text": "*Commit:*\n<${{ github.event.head_commit.url }}|${{ github.sha }}>"
},
{
"type": "mrkdwn",
"text": "*Author:*\n${{ github.actor }}"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Action:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow Run>"
}
}
]
"text": "❌ getFirekirin Deployment Failed!"
}
env
:
SLACK_WEBHOOK_URL
:
${{ secrets.SLACK_WEBHOOK_URL }}
...
...
ecosystem.config.js
View file @
f3c836db
module
.
exports
=
{
apps
:
[{
name
:
'getFirekirin'
,
script
:
'node_modules/next/dist/bin/next'
,
args
:
'start'
,
cwd
:
'/home/1522942.cloudwaysapps.com/abcdxyz123'
,
instances
:
1
,
exec_mode
:
'cluster'
,
autorestart
:
true
,
watch
:
false
,
max_memory_restart
:
'1G'
,
env_production
:
{
NODE_ENV
:
'production'
,
PORT
:
3000
},
error_file
:
'/home/1522942.cloudwaysapps.com/abcdxyz123/logs/pm2-error.log'
,
out_file
:
'/home/1522942.cloudwaysapps.com/abcdxyz123/logs/pm2-out.log'
,
log_date_format
:
'YYYY-MM-DD HH:mm:ss Z'
,
merge_logs
:
true
,
max_restarts
:
10
,
min_uptime
:
'10s'
}]
}
\ No newline at end of file
apps
:
[
{
name
:
"getFirekirin"
,
// Use Next binary directly
script
:
"node_modules/next/dist/bin/next"
,
args
:
"start -p 3000"
,
cwd
:
"/home/1522942.cloudwaysapps.com/segekvheuz"
,
// Process Management
instances
:
1
,
// increase only if server has enough RAM
exec_mode
:
"cluster"
,
autorestart
:
true
,
watch
:
false
,
max_memory_restart
:
"1G"
,
max_restarts
:
10
,
min_uptime
:
"10s"
,
// Environment
env
:
{
NODE_ENV
:
"production"
,
PORT
:
3000
},
// Logging
error_file
:
"/home/1522942.cloudwaysapps.com/segekvheuz/logs/pm2-error.log"
,
out_file
:
"/home/1522942.cloudwaysapps.com/segekvheuz/logs/pm2-out.log"
,
log_date_format
:
"YYYY-MM-DD HH:mm:ss Z"
,
merge_logs
:
true
}
]
};
public/apple-developer-merchantid-domain-association
0 → 100644
View file @
f3c836db
This diff is collapsed.
Click to expand it.
src/components/pages/auth/register/index.tsx
View file @
f3c836db
...
...
@@ -283,9 +283,9 @@ export default function RegisterPage() {
<
div
className=
"input__field"
>
{
/* <InputLabel htmlFor="photoid_number"></InputLabel> */
}
<
PasswordField
label=
'Photo ID'
label=
'Photo ID
Number
'
name=
"photoid_number"
placeholder=
"Enter photo ID"
placeholder=
"Enter photo ID
Number
"
value=
{
values
.
photoid_number
}
onChange=
{
handleChange
}
onBlur=
{
handleBlur
}
...
...
src/components/pages/dashboard/userDashboard/verifyKyc/index.tsx
View file @
f3c836db
...
...
@@ -57,7 +57,7 @@ const validationSchema = Yup.object({
dob
:
Yup
.
date
().
max
(
new
Date
(),
'Date of birth cannot be in the future'
).
required
(
'DOB is required'
),
address
:
Yup
.
string
(),
user_id
:
Yup
.
string
().
required
(
'User ID is required'
),
photo_id
:
Yup
.
string
().
required
(
'Photo ID is required'
),
photo_id
:
Yup
.
string
().
required
(
'Photo ID
Number
is required'
),
});
export
default
function
VerifyKYCPage
()
{
...
...
@@ -187,12 +187,12 @@ export default function VerifyKYCPage() {
{
/* Photo ID */
}
<
div
className=
"input__field"
>
<
InputLabel
htmlFor=
"photo_id"
>
Photo ID
<
span
className=
"text-red-500"
>
*
</
span
></
InputLabel
>
<
InputLabel
htmlFor=
"photo_id"
>
Photo ID
Number
<
span
className=
"text-red-500"
>
*
</
span
></
InputLabel
>
<
OutlinedInput
fullWidth
id=
"photo_id"
name=
"photo_id"
placeholder=
"Enter photo ID"
placeholder=
"Enter photo ID
Number
"
value=
{
formik
.
values
.
photo_id
}
onChange=
{
formik
.
handleChange
}
onBlur=
{
formik
.
handleBlur
}
...
...
vercel.json
View file @
f3c836db
...
...
@@ -8,6 +8,15 @@
"value"
:
"text/plain"
}
]
},
{
"source"
:
"/apple-developer-merchantid-domain-association"
,
"headers"
:
[
{
"key"
:
"Content-Type"
,
"value"
:
"text/plain"
}
]
}
]
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment