Comments (2)
It really seemed like a hectic task to manually update all the URLs after every new pull. To add some ease to my life, I created a bash script that I execute to pull the latest changes from the server and then updating the resource URLs with a single command.
I'm attaching the said script here for other people as a reference.
#!/bin/bash
# Remove any existing changes
echo "Removing any existing changes in the repo..."
git checkout .
# Pull latest changes from the remote
echo "Fetching latest updates from remote..."
git pull
# Update resource URLs
echo "Updating resource URLs in ui/dist/index.html file"
sed -i "s/\/js\//\/admin-ui\/js\//g" ui/dist/index.html
sed -i "s/\/css\//\/admin-ui\/css\//g" ui/dist/index.html
sed -i "s/\/favicon\//\/admin-ui\/favicon\//g" ui/dist/index.html
echo "Done"
from socket.io-admin-ui.
I think you'll have to edit the index.html
file in the ui/dist
directory, and replace the reference for the JS and CSS resources:
Before:
<link href="/css/app.64cb6d3f.css" rel="preload" as="style">
<script src="/js/chunk-vendors.d91c80d5.js">
After:
<link href="/admin-ui/css/app.64cb6d3f.css" rel="preload" as="style">
<script src="/admin-ui/js/chunk-vendors.d91c80d5.js">
I'm not sure how we could improve it though.
from socket.io-admin-ui.
Related Issues (20)
- Redis-adapter -> reject(new Error("timeout reached while waiting for fetchSockets response")) HOT 3
- Add UI grid filtering options HOT 2
- RedisClient library used for RedisStore HOT 1
- Feature Request: Add option to "uninstrument" from the io server HOT 2
- Socket.IO - All users leave the room when a single user leaves
- RedisStore "saveSession" got "Invalid argument type" HOT 2
- Cannot read property 'forEach' of undefined HOT 4
- Fastify implementation HOT 3
- Not working with brave protection
- cors-origin is weird HOT 1
- Traffic and Connections Graphs empty HOT 3
- Add the ability to show the socket event response HOT 1
- Joining namespace room is impossible HOT 4
- Null inside socket.data object's field
- mac m1 build problem HOT 1
- docker image build failed HOT 1
- sass library problem HOT 4
- Azure Web PubSub for Socket.io Adapter
- Node version compatibility of the client side and creation of the docker container. HOT 6
- Add support for Deno HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socket.io-admin-ui.