-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d59c0e8
commit bf0ef55
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |