Skip to content

Added bash scripts - #516

Merged
lipis merged 7 commits into
masterfrom
console
May 31, 2016
Merged

lipis merged 7 commits into
masterfrom
console

Conversation

@lipis

@lipis lipis commented May 30, 2016 •

Copy link
Copy Markdown
Member

Kudos to @mdxs and his idea..

Using Git in Cloud Shell

git clone -b console https://github.com/gae-init/gae-init.git
./gae-init/bin/requirements_cloud_shell.sh

Using curl & bash (at your own risk)

Cloud Shell

curl https://raw.githubusercontent.com/gae-init/gae-init/console/bin/requirements_cloud_shell.sh | bash

Linux

curl https://raw.githubusercontent.com/gae-init/gae-init/console/bin/requirements_linux.sh | bash

OS X

Homebrew
curl https://raw.githubusercontent.com/gae-init/gae-init/console/bin/requirements_osx_brew.sh | bash
MacPorts
curl https://raw.githubusercontent.com/gae-init/gae-init/console/bin/requirements_osx_port.sh | bash

@topless

topless commented May 30, 2016

Copy link
Copy Markdown
Member

Splendid

Comment thread bin/console_requirements.sh Outdated
fi

# Gulp.js
sudo npm install -g gulp

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

homebrewed OS X is not required sudo

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch.. thanks!

@lipis lipis added the feature label May 30, 2016
@lipis lipis modified the milestone: 5.x May 30, 2016
@lipis

lipis commented May 30, 2016 •

Copy link
Copy Markdown
Member Author

Should I add something like that in the beginning of the script? Or Homebrew should be just mentioned.. as it's not a real requirement..

if [[ "$OSTYPE" == "darwin"* ]]; then
  which -s brew
  if [[ $? != 0 ]]; then
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  else
    brew update
  fi
fi

@lipis

lipis commented May 30, 2016

Copy link
Copy Markdown
Member Author

Or maybe just informing brew is not present?

echo "Homebrew is required on OS X in order to continue with the script, install it via http://brew.sh/ or install all the requirements manually: http://docs.gae-init.appspot.com/requirement/"

Comment thread bin/requirements_cloud_shell.sh Outdated

# Python related
curl -O https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe even pip is already preinstalled..

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

@gmist

gmist commented May 31, 2016

Copy link
Copy Markdown
Contributor

MacPorts also can be used... or Nix...

@lipis

lipis commented May 31, 2016

Copy link
Copy Markdown
Member Author

I might pass on Nix until more people will ask for it in the future.. but MacPorts should be added..

@lipis

lipis commented May 31, 2016

Copy link
Copy Markdown
Member Author

@gmist @mdxs @topless am I missing something?

@gmist

gmist commented May 31, 2016

Copy link
Copy Markdown
Contributor

looks good

@lipis
lipis merged commit 5f1650f into master May 31, 2016
@lipis
lipis deleted the console branch May 31, 2016 19:37
topless added a commit to topless/gae-init that referenced this pull request Jun 15, 2016
* master:
  Support vanilla JavaScript (gae-init#521)
  Order by name
  Minor
  Reorder in README
  Update webargs to 1.3.3 (gae-init#519)
  Added pageres screenshots to the tests (gae-init#472)
  Added init_confirm_button function (gae-init#513)
  You don't need actually any of these. (gae-init#518)
  Cloud shell comes with virtualenv pre-installed. (gae-init#517)
  Added bash scripts (gae-init#516)

# Conflicts:
#	gulp/tasks/script.coffee
#	gulp/tasks/watch.coffee
#	main/static/src/script/common/util.coffee
#	package.json
topless added a commit to topless/gae-init that referenced this pull request Jun 15, 2016
* angular:
  Support vanilla JavaScript (gae-init#521)
  Order by name
  Minor
  Reorder in README
  Update webargs to 1.3.3 (gae-init#519)
  Added pageres screenshots to the tests (gae-init#472)
  Added init_confirm_button function (gae-init#513)
  You don't need actually any of these. (gae-init#518)
  Cloud shell comes with virtualenv pre-installed. (gae-init#517)
  Added bash scripts (gae-init#516)
rbubley pushed a commit to rbubley/gae-init that referenced this pull request Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants