Commit e2ff5b41 authored by gxkai's avatar gxkai

chore: 部署

parent 9684a707
......@@ -55,6 +55,7 @@ const Editor = require('./app/editor/editor')
const Terminal = require('./app/panels/terminal')
const ContextualListener = require('./app/editor/contextualListener')
const _paq = window._paq = window._paq || []
process.versions ={node: '11.2.0'}
const css = csjs`
html { box-sizing: border-box; }
......
......@@ -249,7 +249,7 @@ class ContractDropdownUI {
true
)
this.createPanel.appendChild(createConstructorInstance.render())
this.createPanel.appendChild(this.deployCheckBox)
// this.createPanel.appendChild(this.deployCheckBox)
}
getSelectedContract () {
......
name=remix-ide
ip=$1
port=$2
cp -r dist ${name}
tar -czf ${name}.tar ${name}
scp ${name}.tar root@${ip}:/usr/share/nginx/html/${name}.tar
ssh root@${ip} "cd /usr/share/nginx/html && tar -xzf ${name}.tar && rm -rf ${name}.tar && exit"
if [ $? -eq 0 ]; then
rm -rf ${name}.tar
rm -rf ${name}
rm -rf dist
if [ -z "$port" ]; then
echo "done. 👉 http://${ip}/${name}"
fi
if [ -n "$port" ]; then
echo "done. 👉 http://${ip}:${port}/${name}"
fi
fi
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -57,9 +57,9 @@
"downloadsolc_assets": "wget --no-check-certificate https://binaries.soliditylang.org/wasm/soljson-v0.8.7+commit.e28d00a7.js -O ./apps/remix-ide/src/assets/js/soljson.js && wget --no-check-certificate https://binaries.soliditylang.org/wasm/soljson-v0.8.7+commit.e28d00a7.js -O ./apps/solidity-compiler/src/assets/js/soljson.js",
"make-mock-compiler": "node apps/remix-ide/ci/makeMockCompiler.js",
"minify": "uglifyjs --in-source-map inline --source-map-inline -c warnings=false",
"build:production": "NODE_ENV=production nx build remix-ide --skip-nx-cache",
"serve:production": "npx http-server ./dist/apps/remix-ide",
"deploy": "scp -r dist/ root@172.22.17.165:/usr/share/nginx/html",
"build:dev": "nx build remix-ide --skip-nx-cache",
"serve:dev": "npx http-server ./dist/apps/remix-ide",
"deploy:dev": "./deploy.sh 172.22.17.165",
"nightwatch_parallel": "npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=chrome,firefox",
"nightwatch_local_firefox": "npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=firefox",
"nightwatch_local_chrome": "npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=chrome",
......@@ -193,7 +193,7 @@
"string-similarity": "^4.0.4",
"time-stamp": "^2.2.0",
"tslib": "^2.3.0",
"web3": "^1.5.1",
"web3": "^1.6.0",
"winston": "^3.3.3",
"ws": "^7.3.0"
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment