Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
401935d703 | ||
|
|
eda530cce6 | ||
|
|
60d701ac07 | ||
|
|
87490d6263 |
No files matched your search
+1
-5
@@ -59,8 +59,7 @@ export async function getServerSideProps(context) {
|
|||||||
const users = await prisma.user.findMany({
|
const users = await prisma.user.findMany({
|
||||||
include: {
|
include: {
|
||||||
gains: true
|
gains: true
|
||||||
},
|
}
|
||||||
take: 5
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const user = await prisma.user.findUnique({
|
const user = await prisma.user.findUnique({
|
||||||
@@ -71,7 +70,6 @@ export async function getServerSideProps(context) {
|
|||||||
|
|
||||||
const ticketRestants = await prisma.gain.count({
|
const ticketRestants = await prisma.gain.count({
|
||||||
where: {
|
where: {
|
||||||
codeActif: true,
|
|
||||||
dateAchat: {
|
dateAchat: {
|
||||||
not: null,
|
not: null,
|
||||||
}
|
}
|
||||||
@@ -90,8 +88,6 @@ export async function getServerSideProps(context) {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log("🚀 ~ file: admin.tsx:87 ~ getServerSideProps ~ gainsRetires", gainsRetires)
|
|
||||||
|
|
||||||
const produits = await prisma.produit.findMany({})
|
const produits = await prisma.produit.findMany({})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
+6
-17
@@ -1,29 +1,18 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
echo 'The following "npm" command builds your Node.js/React application for'
|
|
||||||
echo 'production in the local "build" directory (i.e. within the'
|
|
||||||
echo '"/var/jenkins_home/workspace/simple-node-js-react-app" directory),'
|
|
||||||
echo 'correctly bundles React in production mode and optimizes the build for'
|
|
||||||
echo 'the best performance.'
|
|
||||||
set -x
|
set -x
|
||||||
npm run build
|
npm run build
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
echo 'The following "npm" command runs your Node.js/React application in'
|
|
||||||
echo 'development mode and makes the application available for web browsing.'
|
|
||||||
echo 'The "npm start" command has a trailing ampersand so that the command runs'
|
|
||||||
echo 'as a background process (i.e. asynchronously). Otherwise, this command'
|
|
||||||
echo 'can pause running builds of CI/CD applications indefinitely. "npm start"'
|
|
||||||
echo 'is followed by another command that retrieves the process ID (PID) value'
|
|
||||||
echo 'of the previously run process (i.e. "npm start") and writes this value to'
|
|
||||||
echo 'the file ".pidfile".'
|
|
||||||
set -x
|
set -x
|
||||||
npm start &
|
npm start &
|
||||||
sleep 1
|
sleep 1
|
||||||
echo $! > .pidfile
|
echo $! > .pidfile
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
echo 'Now...'
|
echo 'Maintenant...'
|
||||||
echo 'Visit http://localhost:3000 to see your Node.js/React application in action.'
|
echo 'Visiter https://devops.dsp-archiwebo21-ad-ec-cb-mt.fr/ '
|
||||||
echo '(This is why you specified the "args ''-p 3000:3000''" parameter when you'
|
echo 'L_application tourne sur le docker jenkins sur via le port 3000 voici un ip a'
|
||||||
echo 'created your initial Pipeline as a Jenkinsfile.)'
|
ip a
|
||||||
|
echo 'Pour fermer l_application a appuyer sur le bouton proced'
|
||||||
Reference in new issue
Block a user