Gitlab@Informatics
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PQS-Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
65160206
PQS-Frontend
Commits
254c755a
Commit
254c755a
authored
1 month ago
by
65160206
Browse files
Options
Downloads
Patches
Plain Diff
deploy
parent
e823fa55
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.env
+1
-0
1 addition, 0 deletions
.env
.env.production
+1
-0
1 addition, 0 deletions
.env.production
Dockerfile
+19
-0
19 additions, 0 deletions
Dockerfile
docker-compose.yml
+7
-0
7 additions, 0 deletions
docker-compose.yml
src/services/http.ts
+1
-1
1 addition, 1 deletion
src/services/http.ts
with
29 additions
and
1 deletion
.env
0 → 100644
+
1
−
0
View file @
254c755a
VITE_API_BASE_URL=http://localhost:4000
This diff is collapsed.
Click to expand it.
.env.production
0 → 100644
+
1
−
0
View file @
254c755a
VITE_API_BASE_URL=http://dekdee3.informatics.buu.ac.th:8012
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
19
−
0
View file @
254c755a
# Build stage
FROM
node:18
AS
builder
WORKDIR
/app
COPY
package*.json ./
RUN
npm
install
COPY
. .
RUN
npm run build
# Production stage
FROM
nginx:stable-alpine
COPY
--from=builder /app/dist /usr/share/nginx/html
# copy nginx config if needed (optional)
# COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE
80
CMD
["nginx", "-g", "daemon off;"]
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
7
−
0
View file @
254c755a
version
:
"
3"
services
:
lookoad-frontend
:
build
:
.
ports
:
-
"
8011:80"
# นายจองไว้เรียบร้อย
restart
:
always
This diff is collapsed.
Click to expand it.
src/services/http.ts
+
1
−
1
View file @
254c755a
...
@@ -2,7 +2,7 @@ import router from '@/router'
...
@@ -2,7 +2,7 @@ import router from '@/router'
import
axios
from
'
axios
'
import
axios
from
'
axios
'
const
instance
=
axios
.
create
({
const
instance
=
axios
.
create
({
baseURL
:
'
http://localhost:4000
'
baseURL
:
import
.
meta
.
env
.
VITE_API_BASE_URL
})
})
function
delay
(
sec
:
number
)
{
function
delay
(
sec
:
number
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment