Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rt2old
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
rt2old
Commits
03acad38
Commit
03acad38
authored
Apr 02, 2019
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
5126950c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
vcs.xml
.idea/vcs.xml
+6
-0
app.js
app.js
+12
-1
package.json
package.json
+2
-1
No files found.
.idea/vcs.xml
0 → 100644
View file @
03acad38
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$"
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
app.js
View file @
03acad38
const
express
=
require
(
'
express
'
)
const
app
=
express
()
const
port
=
3000
const
shell
=
require
(
'
shelljs
'
)
app
.
get
(
'
/
'
,
(
req
,
res
)
=>
res
.
send
(
'
Hello World!
'
))
app
.
get
(
'
/
'
,
(
req
,
res
)
=>
{
res
.
send
(
'
Hello World!
'
)
run
()
})
app
.
listen
(
port
,
()
=>
console
.
log
(
`Example app listening on port
${
port
}
!`
))
async
function
run
()
{
let
a
=
await
shell
.
exec
(
'
cd .. && ls cd mt && sudo ./kill.sh && ./server1.sh
'
,
{
silent
:
true
}).
stdout
;
console
.
log
(
a
)
}
package.json
View file @
03acad38
...
...
@@ -6,6 +6,7 @@
"start"
:
"node ./bin/www"
},
"dependencies"
:
{
"
express
"
:
"
~4.16.0
"
"
express
"
:
"
~4.16.0
"
,
"
shelljs
"
:
"
^0.8.3
"
}
}
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