Question

How to create a staging server?

Posted April 19, 2020 351 views
Getting Started

New to DigitalOcean. I want to create a development / staging server for my Saas app before launch. I need to work on it remotely. How should I do that?

Using Linux, Laravel, MySqL, JS.

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Hi @vincej,

Firstly, you’ll need to create a droplet with a LAMP stack - Apache,MySql,PHP. You can use the following article to achieve that :

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04

Once you have it, you should be able to use a program like Visual Studio Code alongside SSHFS to connect remotely to your laravel project and develop it.

Regards,
KDSys

by Mark Drake
A "LAMP" stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This stack typically consists of the Linux operating system, the Apache web server, a MySQL database, and PHP, a dynamic content processor. This tutorial serves as a guide for installing these components on an Ubuntu 18.04 server.
  • Thanks for that. I repeated my question because the DO servers flagged my question as spam, and so I was not sure whether it got through. Nor why it flagged it as spam.

    Creating a droplet and interacting with the files is not really an issue for me. I want to be able to view the rendered pages as I work on them, without the site being available to the public. When I was with InMotion Hosting, I could do that. I was curious how I can achive the same thing with DO.

    Thanks Vince

    • Hi @vincej,

      In this case, you should be able to add an deny from all rule in your .htaccess and allow only your IP address.

      That way, you’ll be the only one able to see your website.

      Additionally, you can use a hosts file.

      Regards,
      KDSys

Ok, I think what I need is to create a subdomain.

Submit an Answer