Skip to content

Commit

Permalink
v1.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
akaJes committed May 30, 2018
1 parent 99baec0 commit 0943b2f
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
upload
sessions
projects.json
25 changes: 8 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,20 @@ used the best multifunction web editor [ACE](https://ace.c9.io/) ever

the [GIT](https://git-scm.com/) is strongly recomended to install as dependency
### Binary installation
download https://github.com/akaJes/jesed/releases and run

enter your credentials and open http://localhost:3000/
just download https://github.com/akaJes/jesed/releases to some project folder(with git) and run
### NPM installation
```
mkdir jesed ; cd jesed
npm i jesed
./jesed
```
enter your credentials and open http://localhost:3000/
`sudo npm i -g jesed` choose some project folder(with git) and type `jesed`
### Startup local
enter your credentials and open http://localhost:3000/ (do not close application)
#### Type for help
`./jesed --help`
`jesed --help`
#### Create new User
`./jesed user add me`
`jesed user add me`
#### Add/modify projects
Modify the `projects.json` for your desire with your favorite editor
#### For local use
the application must be opened
#### For use with apache as service
#### For use with Apache webserver as PM2 service
```
sudo npm i -g pm2
sudo pm2 start package.json
cd config
jesed config
sudo ./apache
```
open in your browser http://your-domain/jesed/ link
3 changes: 3 additions & 0 deletions config/apache
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
sudo npm i -g pm2
pm2 start jesed.json

sudo cp jesed.conf /etc/apache2/conf-available
sudo a2enconf jesed
sudo a2enmod rewrite
Expand Down
12 changes: 12 additions & 0 deletions config/jesed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"apps": [
{
"name": "jesed",
"script": "jesed",
"args": [
"serve",
"apache"
]
}
]
}
4 changes: 4 additions & 0 deletions jesed
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ const args = () => yargs
.command(['users'], 'list available users', {}, (argv) => {
getPass().then(i => i.map(a => console.log(a[0])))
})
.command(['config'], 'copy configuration files to this folder', {}, (argv) => {
['apache', 'jesed.conf', 'jesed.json'].map(i =>
promisify(fs.copyFile)(path.join(__dirname, 'config', i), i));
})
.command(['user [mode] [name]'], 'set or remove allowed users', (yargs) => {
yargs
.positional('mode', {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jesed",
"version": "0.1.6",
"version": "0.1.7",
"description": "online instant collaborative editor",
"main": "./jesed",
"scripts": {
Expand Down

0 comments on commit 0943b2f

Please sign in to comment.