Skip to content

Instantly share code, notes, and snippets.

@mangopudding
Last active March 19, 2018 11:25
Show Gist options
  • Save mangopudding/f5a17579d73af1c66b4f99020215c16c to your computer and use it in GitHub Desktop.
Save mangopudding/f5a17579d73af1c66b4f99020215c16c to your computer and use it in GitHub Desktop.
CodeCanyon - NearmeApp - Ionic 2 Starter for Location Based Apps (Server Setup On Ubuntu Server)
# Overview - Server Setup with Dokku
# I had purchased the NearmeApp from CodeCanyon.net for a personal project.
# After watching the YouTube video (https://www.youtube.com/watch?v=WcXL2WuYhok) on server setup, I decided to do this on my own server.
# Below are instructions for making it easier to setup and reference for future projects.
#
# Assumption is to be using a fresh install of Ubuntu Server 14.05.
# Must successfully install Dokku using the instructions below from their site
# - http://dokku.viewdocs.io/dokku/getting-started/installation/#1-install-dokku
# - http://dokku.viewdocs.io/dokku/getting-started/installation/#2-setup-ssh-key-and-virtualhost-settings
# Install MongoDB
sudo dokku plugin:install https://github.com/dokku/dokku-mongo.git mongo
# Create database called "myeventappdb"
sudo dokku mongo:create myeventappdb
# Create app called "myeventapp"
sudo dokku apps:create myeventapp
# Link the database and app together from the above steps
sudo dokku mongo:link myeventappdb myeventapp
# The above instructions setup the app/database shell. The CMS code still needs to be deployed!
# Overview - Deployment of Nearme CMS to Server
# - IMPORTANT - Make sure you review the FAQ section in the Items Details page as there are some depenendacy updates.
# https://codecanyon.net/item/nearmeapp-ionic-2-starter-for-location-based-apps/19184982
#
# Assumption is that the Nearme CMS code is extracted and on your computer (not server)
# -
# - You'll need to be in the CMS folder to do the following.
#
# Initialize git repository
git init
# This command will add all the files in the directory to the repository
git add .
# This command will commit the files into the repository
git commit -m "First Commit into repository"
# IP Address is the ip address of your Ubuntu Server - change that.
git remote add dokku [email protected]:myeventapp
# This updates your Ubuntu server with the code.
git push dokku master
# Now... you should be able to go to your server and see the CMS.
#
# Fill out the form - this will be your admin account.
http://<your-server-ip>/install
# Now Login!
http://<your-server-ip>/install
# Hope this was helpful!
@mangopudding
Copy link
Author

mangopudding commented Apr 21, 2017

Hi @elsorro.

Assumption is to be using a fresh install of Ubuntu Server 14.05.
Must successfully install Dokku using the instructions below from their site

  1. http://dokku.viewdocs.io/dokku/getting-started/installation/#1-install-dokku
  2. http://dokku.viewdocs.io/dokku/getting-started/installation/#2-setup-ssh-key-and-virtualhost-settings

Which part are you getting stuck on?

Make sure you do an:

sudo apt-get update
sudo apt-get upgrade

then try installing Dokku:

wget https://raw.githubusercontent.com/dokku/dokku/v0.9.4/bootstrap.sh;
sudo DOKKU_TAG=v0.9.4 bash bootstrap.sh

@elsorro
Copy link

elsorro commented Apr 22, 2017

I installed dokku in a fresh ubuntu install.

But I have a white screen, I modificated the file bower.json and nothing.

captura de pantalla 2017-04-22 a las 10 26 31

@mahmoudomar
Copy link

hi,
i need you to setup cms
can we contact

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