Skip to content

Instantly share code, notes, and snippets.

@kcochibili
Last active February 18, 2017 08:10
Show Gist options
  • Save kcochibili/6a1040d395f8ea8b7d14 to your computer and use it in GitHub Desktop.
Save kcochibili/6a1040d395f8ea8b7d14 to your computer and use it in GitHub Desktop.
How to deploy BaasBox on a Linux server in Google Compute Engine
# Go to https://cloud.google.com/compute/
#create a project,
#create an instance
#follow this video to open port 9000 for Baasbox https://www.youtube.com/watch?v=qAV__Rq4vIQ (pay atention to where the demonstrator initialy clicks his mouse)
# launch SSH for your instance (by clicking SSH button)
# While in the SSH, enter the commands bellow, run the commands by clicking the Enter key after each command, wait for each command to run before running the next.
# Install Java
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java8-installer
# In case you don't have unzip, install it
sudo apt-get install unzip
# install screen. This will be used for running BaasBox in the Background
apt-get install screen
# Download Baasbox
wget --content-disposition http://www.baasbox.com/download/baasbox-stable.zip
# Unzip baasbox
unzip baasbox-stable.zip (append the version number printed by the command line before '.zip')
# move into the unzipped folder (replace the version number with the one printed by the command line)
cd baasbox-0.8.4/
# Assign execution privileges to the start script
chmod +x ./start
# Gain super User Access to run Screen
sudo su
# create a background proccess where BaasBox Server will run
screen -S baasboxserver
# Run BaasBox
./start
# Visit http://YOUR_IP:9000/console to access the console. (Yes, append :9000 to the ip adress to access the console)
# your VM Instance IP adress should be available on the profile of your created instance in the cloud console
# (optional) After you have closed the SSH session, if you return to it later and want to continue from the BaasBox server Screen, where you left off, run this to
# Bring the BaasBoxServer to the foregroud
sudo su
screen -r baasboxserver
@kcochibili
Copy link
Author

kcochibili commented Feb 18, 2017

Changing application code: ./start -Dapplication.code=..... when starting baasbox
info source: https://groups.google.com/forum/#!topic/baasbox/0rzqj-xfNnE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment