Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds remote server side restart on push from local #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions readme.scroll
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ Torify your site with an onion domain: https://www.torproject.org/about/history/

sudo apt update && sudo apt install -y tor && echo -e "HiddenServiceDir /var/lib/tor/hidden_service/\nHiddenServicePort 80 127.0.0.1:3000" | sudo tee -a /etc/tor/torrc && sudo systemctl restart tor && sudo cat /var/lib/tor/hidden_service/hostname


# Development Environmet Steps
Add '''
git config --global alias.acp '!git add . && git commit -m "local Update" && git push'
'''

and use git acp to push to remote

Make sure server side .gitignore includes all log and often changed files, to avoid local push conflicts.

## run this to set up auto server restart on push
'''
cd hooks && touch post-update && chmod +x post-update && echo -e '#!/bin/sh\ncd /root || exit\npm2 restart server.js\ngit update-server-info' > post-update
'''

ScrollHub is public domain.

footer.scroll