Last active
February 18, 2017 08:10
-
-
Save kcochibili/6a1040d395f8ea8b7d14 to your computer and use it in GitHub Desktop.
How to deploy BaasBox on a Linux server in Google Compute Engine
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
# 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 |
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
Extra stuff
https://groups.google.com/forum/#!topic/baasbox/JAU23rYp_QM
http://www.unsure.org/baasbox/ubuntu/running-baasbox-on-ubuntu/