Skip to content

Commit

Permalink
add production readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultGerrier committed Oct 1, 2018
1 parent d59c0e8 commit bf0ef55
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "meteor run",
"dev": "meteor --settings ./settings.json",
"deploy": "meteor --settings ./.deploy/settings.json",
"build": "meteor build ../build --architecture os.linux.x86_64"
"build": "meteor build ../ --architecture os.linux.x86_64"
},
"devDependencies": {
"babel-eslint": "^8.2.1",
Expand Down
17 changes: 17 additions & 0 deletions production.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Building for production
A bundle has to be created of the project: `meteor npm run build` create a StyleExplorer.tar.gz file in the parent folder.
This archive has to be shipped to the server. Eg via scp: `scp StyleExplorer.tar.gz [email protected]:/home/thibault/style_explorer`.

After this you need to restart the node application with the new code.
```
ssh [email protected]
pm2 stop main # stop the previous app
cd style_explorer
rm -rf bundler # remove the previous code
tar -xzf StyleExplorer.tar.gz # unpack bundle
rm StyleExplorer.tar.gz # remove archive (optional)
cd bundle/programs/server
npm install # install node dependencies
cd ~
pm2 start main # restart application
```

0 comments on commit bf0ef55

Please sign in to comment.