Skip to content

Commit cbc45bd

Browse files
nagamalli9999CompuIves
authored andcommitted
Simplified Exit logic in deploy.sh (codesandbox#311)
* Add @nagamalli9999 as a contributor * Simplified Exit logic in deploy.sh 'set -e' will force bash to exit if there is a non zero exit code
1 parent 9437ca4 commit cbc45bd

File tree

3 files changed

+25
-14
lines changed

3 files changed

+25
-14
lines changed

β€Ž.all-contributorsrcβ€Ž

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,16 @@
198198
"design",
199199
"code"
200200
]
201+
},
202+
{
203+
"login": "nagamalli9999",
204+
"name": "Eswar Yaganti",
205+
"avatar_url": "https://avatars3.githubusercontent.com/u/3381746?v=4",
206+
"profile": "http://nyaganti.com",
207+
"contributions": [
208+
"code",
209+
"infra"
210+
]
201211
}
202212
]
203213
}

β€ŽREADME.mdβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [CodeSandbox](https://codesandbox.io) [![Chat](https://img.shields.io/badge/chat-on%20discord-7289da.svg)](https://discord.gg/KE3TbEZ) [![All Contributors](https://img.shields.io/badge/all_contributors-19-orange.svg?style=flat-square)](#contributors) [![Build Status](https://travis-ci.org/CompuIves/codesandbox-client.svg?branch=master)](https://travis-ci.org/CompuIves/codesandbox-client) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![first-timers-only Friendly](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](http://www.firsttimersonly.com/)
1+
# [CodeSandbox](https://codesandbox.io) [![Chat](https://img.shields.io/badge/chat-on%20discord-7289da.svg)](https://discord.gg/KE3TbEZ) [![All Contributors](https://img.shields.io/badge/all_contributors-20-orange.svg?style=flat-square)](#contributors) [![Build Status](https://travis-ci.org/CompuIves/codesandbox-client.svg?branch=master)](https://travis-ci.org/CompuIves/codesandbox-client) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![first-timers-only Friendly](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](http://www.firsttimersonly.com/)
22

33
An online code editor tailored for web applications.
44

@@ -27,8 +27,8 @@ CodeSandbox consists several separate servers, some of these are open sourced.
2727
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
2828

2929
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
30-
| [<img src="https://avatars0.githubusercontent.com/u/587016?v=3" width="100px;"/><br /><sub>Ives van Hoorne</sub>](http://ivesvh.com)<br />[πŸ’¬](#question-CompuIves "Answering Questions") [πŸ“](#blog-CompuIves "Blogposts") [πŸ›](https://github.com/CompuIves/codesandbox-client/issues?q=author%3ACompuIves "Bug reports") [πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=CompuIves "Code") [🎨](#design-CompuIves "Design") [πŸ“–](https://github.com/CompuIves/codesandbox-client/commits?author=CompuIves "Documentation") [πŸ’‘](#example-CompuIves "Examples") [πŸš‡](#infra-CompuIves "Infrastructure (Hosting, Build-Tools, etc)") [πŸ‘€](#review-CompuIves "Reviewed Pull Requests") [⚠️](https://github.com/CompuIves/codesandbox-client/commits?author=CompuIves "Tests") [πŸ”§](#tool-CompuIves "Tools") | [<img src="https://avatars0.githubusercontent.com/u/887639?v=3" width="100px;"/><br /><sub>Donavon West</sub>](http://donavon.com)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=donavon "Code") | [<img src="https://avatars0.githubusercontent.com/u/5266810?v=3" width="100px;"/><br /><sub>Jeff Allen</sub>](http://www.jeffallen.io/)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=vueu "Code") | [<img src="https://avatars0.githubusercontent.com/u/1089897?v=3" width="100px;"/><br /><sub>Ben Gummer</sub>](https://github.com/bengummer)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=bengummer "Code") | [<img src="https://avatars3.githubusercontent.com/u/154732?v=3" width="100px;"/><br /><sub>James Gillmore</sub>](http://twitter.com/faceyspacey)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=faceyspacey "Code") [πŸ›](https://github.com/CompuIves/codesandbox-client/issues?q=author%3Afaceyspacey "Bug reports") | [<img src="https://avatars1.githubusercontent.com/u/9636410?v=4" width="100px;"/><br /><sub>Ade Viankakrisna Fadlil</sub>](https://musify.id)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=viankakrisna "Code") | [<img src="https://avatars1.githubusercontent.com/u/1854763?v=4" width="100px;"/><br /><sub>Tushar Sonawane</sub>](https://twitter.com/tushkiz)<br />[πŸ’¬](#question-Tushkiz "Answering Questions") [πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=Tushkiz "Code") [πŸ“–](https://github.com/CompuIves/codesandbox-client/commits?author=Tushkiz "Documentation") [πŸ€”](#ideas-Tushkiz "Ideas, Planning, & Feedback") |
30+
| [<img src="https://avatars0.githubusercontent.com/u/587016?v=3" width="100px;"/><br /><sub><b>Ives van Hoorne</b></sub>](http://ivesvh.com)<br />[πŸ’¬](#question-CompuIves "Answering Questions") [πŸ“](#blog-CompuIves "Blogposts") [πŸ›](https://github.com/CompuIves/codesandbox-client/issues?q=author%3ACompuIves "Bug reports") [πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=CompuIves "Code") [🎨](#design-CompuIves "Design") [πŸ“–](https://github.com/CompuIves/codesandbox-client/commits?author=CompuIves "Documentation") [πŸ’‘](#example-CompuIves "Examples") [πŸš‡](#infra-CompuIves "Infrastructure (Hosting, Build-Tools, etc)") [πŸ‘€](#review-CompuIves "Reviewed Pull Requests") [⚠️](https://github.com/CompuIves/codesandbox-client/commits?author=CompuIves "Tests") [πŸ”§](#tool-CompuIves "Tools") | [<img src="https://avatars0.githubusercontent.com/u/887639?v=3" width="100px;"/><br /><sub><b>Donavon West</b></sub>](http://donavon.com)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=donavon "Code") | [<img src="https://avatars0.githubusercontent.com/u/5266810?v=3" width="100px;"/><br /><sub><b>Jeff Allen</b></sub>](http://www.jeffallen.io/)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=vueu "Code") | [<img src="https://avatars0.githubusercontent.com/u/1089897?v=3" width="100px;"/><br /><sub><b>Ben Gummer</b></sub>](https://github.com/bengummer)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=bengummer "Code") | [<img src="https://avatars3.githubusercontent.com/u/154732?v=3" width="100px;"/><br /><sub><b>James Gillmore</b></sub>](http://twitter.com/faceyspacey)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=faceyspacey "Code") [πŸ›](https://github.com/CompuIves/codesandbox-client/issues?q=author%3Afaceyspacey "Bug reports") | [<img src="https://avatars1.githubusercontent.com/u/9636410?v=4" width="100px;"/><br /><sub><b>Ade Viankakrisna Fadlil</b></sub>](https://musify.id)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=viankakrisna "Code") | [<img src="https://avatars1.githubusercontent.com/u/1854763?v=4" width="100px;"/><br /><sub><b>Tushar Sonawane</b></sub>](https://twitter.com/tushkiz)<br />[πŸ’¬](#question-Tushkiz "Answering Questions") [πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=Tushkiz "Code") [πŸ“–](https://github.com/CompuIves/codesandbox-client/commits?author=Tushkiz "Documentation") [πŸ€”](#ideas-Tushkiz "Ideas, Planning, & Feedback") |
3131
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
32-
| [<img src="https://avatars3.githubusercontent.com/u/1239401?v=4" width="100px;"/><br /><sub>Johann Hubert Sonntagbauer</sub>](https://github.com/johann-sonntagbauer)<br />[πŸ›](https://github.com/CompuIves/codesandbox-client/issues?q=author%3Ajohann-sonntagbauer "Bug reports") [πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=johann-sonntagbauer "Code") | [<img src="https://avatars2.githubusercontent.com/u/9586897?v=4" width="100px;"/><br /><sub>Joachim Seminck</sub>](https://github.com/jseminck)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=jseminck "Code") | [<img src="https://avatars3.githubusercontent.com/u/5210019?v=4" width="100px;"/><br /><sub>Subramanya Chakravarthy</sub>](http://chakrihacker.github.io)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=chakrihacker "Code") | [<img src="https://avatars3.githubusercontent.com/u/23088?v=4" width="100px;"/><br /><sub>Robert (Robby) O'Connor</sub>](http://robby.oconnor.ninja)<br />[πŸš‡](#infra-robbyoconnor "Infrastructure (Hosting, Build-Tools, etc)") | [<img src="https://avatars0.githubusercontent.com/u/2083930?v=4" width="100px;"/><br /><sub>Bogdan Luca</sub>](https://github.com/lbogdan)<br />[πŸ›](https://github.com/CompuIves/codesandbox-client/issues?q=author%3Albogdan "Bug reports") [πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=lbogdan "Code") | [<img src="https://avatars3.githubusercontent.com/u/6177621?v=4" width="100px;"/><br /><sub>Divjot Singh</sub>](http://bogas04.github.io)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=bogas04 "Code") | [<img src="https://avatars3.githubusercontent.com/u/5249539?v=4" width="100px;"/><br /><sub>Jason Nall</sub>](http://www.jsonnull.com)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=jsonnull "Code") |
33-
| [<img src="https://avatars3.githubusercontent.com/u/784056?v=4" width="100px;"/><br /><sub>Lionel</sub>](https://elrumordelaluz.com)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=elrumordelaluz "Code") [🎨](#design-elrumordelaluz "Design") | [<img src="https://avatars3.githubusercontent.com/u/170500?v=4" width="100px;"/><br /><sub>Philipp Brumm</sub>](https://github.com/brumm)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=brumm "Code") | [<img src="https://avatars2.githubusercontent.com/u/2678610?v=4" width="100px;"/><br /><sub>Valentin Hervieu</sub>](http://valentin-hervieu.fr)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=ValentinH "Code") [πŸ›](https://github.com/CompuIves/codesandbox-client/issues?q=author%3AValentinH "Bug reports") | [<img src="https://avatars0.githubusercontent.com/u/1499218?v=4" width="100px;"/><br /><sub>Anenth</sub>](http://anenth.js.org)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=Anenth "Code") [🎨](#design-Anenth "Design") [πŸ€”](#ideas-Anenth "Ideas, Planning, & Feedback") | [<img src="https://avatars3.githubusercontent.com/u/89046?v=4" width="100px;"/><br /><sub>Geoffrey Dhuyvetters</sub>](https://github.com/duivvv)<br />[🎨](#design-duivvv "Design") [πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=duivvv "Code") |
32+
| [<img src="https://avatars3.githubusercontent.com/u/1239401?v=4" width="100px;"/><br /><sub><b>Johann Hubert Sonntagbauer</b></sub>](https://github.com/johann-sonntagbauer)<br />[πŸ›](https://github.com/CompuIves/codesandbox-client/issues?q=author%3Ajohann-sonntagbauer "Bug reports") [πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=johann-sonntagbauer "Code") | [<img src="https://avatars2.githubusercontent.com/u/9586897?v=4" width="100px;"/><br /><sub><b>Joachim Seminck</b></sub>](https://github.com/jseminck)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=jseminck "Code") | [<img src="https://avatars3.githubusercontent.com/u/5210019?v=4" width="100px;"/><br /><sub><b>Subramanya Chakravarthy</b></sub>](http://chakrihacker.github.io)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=chakrihacker "Code") | [<img src="https://avatars3.githubusercontent.com/u/23088?v=4" width="100px;"/><br /><sub><b>Robert (Robby) O'Connor</b></sub>](http://robby.oconnor.ninja)<br />[πŸš‡](#infra-robbyoconnor "Infrastructure (Hosting, Build-Tools, etc)") | [<img src="https://avatars0.githubusercontent.com/u/2083930?v=4" width="100px;"/><br /><sub><b>Bogdan Luca</b></sub>](https://github.com/lbogdan)<br />[πŸ›](https://github.com/CompuIves/codesandbox-client/issues?q=author%3Albogdan "Bug reports") [πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=lbogdan "Code") | [<img src="https://avatars3.githubusercontent.com/u/6177621?v=4" width="100px;"/><br /><sub><b>Divjot Singh</b></sub>](http://bogas04.github.io)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=bogas04 "Code") | [<img src="https://avatars3.githubusercontent.com/u/5249539?v=4" width="100px;"/><br /><sub><b>Jason Nall</b></sub>](http://www.jsonnull.com)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=jsonnull "Code") |
33+
| [<img src="https://avatars3.githubusercontent.com/u/784056?v=4" width="100px;"/><br /><sub><b>Lionel</b></sub>](https://elrumordelaluz.com)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=elrumordelaluz "Code") [🎨](#design-elrumordelaluz "Design") | [<img src="https://avatars3.githubusercontent.com/u/170500?v=4" width="100px;"/><br /><sub><b>Philipp Brumm</b></sub>](https://github.com/brumm)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=brumm "Code") | [<img src="https://avatars2.githubusercontent.com/u/2678610?v=4" width="100px;"/><br /><sub><b>Valentin Hervieu</b></sub>](http://valentin-hervieu.fr)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=ValentinH "Code") [πŸ›](https://github.com/CompuIves/codesandbox-client/issues?q=author%3AValentinH "Bug reports") | [<img src="https://avatars0.githubusercontent.com/u/1499218?v=4" width="100px;"/><br /><sub><b>Anenth</b></sub>](http://anenth.js.org)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=Anenth "Code") [🎨](#design-Anenth "Design") [πŸ€”](#ideas-Anenth "Ideas, Planning, & Feedback") | [<img src="https://avatars3.githubusercontent.com/u/89046?v=4" width="100px;"/><br /><sub><b>Geoffrey Dhuyvetters</b></sub>](https://github.com/duivvv)<br />[🎨](#design-duivvv "Design") [πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=duivvv "Code") | [<img src="https://avatars3.githubusercontent.com/u/3381746?v=4" width="100px;"/><br /><sub><b>Eswar Yaganti</b></sub>](http://nyaganti.com)<br />[πŸ’»](https://github.com/CompuIves/codesandbox-client/commits?author=nagamalli9999 "Code") [πŸš‡](#infra-nagamalli9999 "Infrastructure (Hosting, Build-Tools, etc)") |
3434
<!-- ALL-CONTRIBUTORS-LIST:END -->

β€Ždeploy.shβ€Ž

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!/bin/bash
2+
set -e
23

3-
rm -rf .deliver && \
4-
mkdir .deliver && \
5-
cp -R www .deliver && \
6-
echo "Tarring build files" && \
7-
tar -C .deliver -zcvf .deliver/code_sandbox_client.tar.gz www && \
8-
echo "Cleaning remote tar" && \
9-
ssh [email protected] "rm -f code_sandbox_client.tar.gz" && \
10-
echo "Moving tar to server" && \
11-
scp .deliver/code_sandbox_client.tar.gz [email protected]:./ && \
12-
echo "Untarring www files" && \
4+
rm -rf .deliver
5+
mkdir .deliver
6+
cp -R www .deliver
7+
echo "Tarring build files"
8+
tar -C .deliver -zcvf .deliver/code_sandbox_client.tar.gz www
9+
echo "Cleaning remote tar"
10+
ssh [email protected] "rm -f code_sandbox_client.tar.gz"
11+
echo "Moving tar to server"
12+
scp .deliver/code_sandbox_client.tar.gz [email protected]:./
13+
echo "Untarring www files"
1314
ssh [email protected] "tar -xzf ./code_sandbox_client.tar.gz"
1415

0 commit comments

Comments
Β (0)