Commit b91ae5fc authored by Aral Balkan's avatar Aral Balkan

Added dev command and updated help.

parent 6ced9bad
#!/bin/sh
#
# Runs command in requested directory and restores the working directory at the end.
# Usage: run <directory> "<command>"
#
runIn(){
pushd $1 >/dev/null
eval $2
popd >/dev/null
}
hello(){
echo """
Better: setting up local development environment…
· Starting local Better web server: http://localhost:3000
· Starting Better Builder via nodemon.
(Any changes to the ~/better.fyi/content|themes directory or to builder/
will result in an automatic rebuild of the data for the apps – iOS and OS X – and site.)
· Also starting two other servers that you normally don’t have to worry about:
· Starting simulated GitLab web hook server on port 8888.
· Starting local git server on port 8889.
"""
}
goodbye(){
echo "\n\nGoodbye!\n\nLocal development environment and servers have been shut down.\n"
exit 0
}
main()
{
hello
runIn builder "./dev"
goodbye
}
main
\ No newline at end of file
......@@ -20,14 +20,15 @@ echo """
Better Commands: Help
=====================
dev: start development environment (Better Builder and servers)
edit: edit a domain
help: display this help
log-in: sign into source.ind.ie
log-out: sign out of source.ind.ie
status: display current status
edit: edit a domain
save: save a domain to the remote repository
update: update a domain from the remote repository
stat: display current status
submit: submit your changes and open a merge request
help: display this help
update: update a domain from the remote repository
For further usage instructions, type <command> --help
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment