Difference between revisions of "NextCloud: Heroku: Install: Capture Initial Config"

From Gratiel's Wiki
(→‎Create a config)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
== SSH into App ==
 
== SSH into App ==
 
Need to SSH into Heroku after app starts.
 
Need to SSH into Heroku after app starts.
−
  heroku ps:exec --app infinite-lowlands-38883
+
  heroku ps:exec --app infinite-lowlands-88888
  
 
  Running this command for the first time requires a dyno restart.
 
  Running this command for the first time requires a dyno restart.
Line 13: Line 13:
 
  Waiting for <span style="color:#06989A">web.1</span> to start... done
 
  Waiting for <span style="color:#06989A">web.1</span> to start... done
 
  Establishing credentials... done
 
  Establishing credentials... done
−
  Connecting to <span style="color:#34E2E2">web.1</span> on <span style="color:#8787D7">⬢ infinite-lowlands-38883</span>...  
+
  Connecting to <span style="color:#34E2E2">web.1</span> on <span style="color:#8787D7">⬢ infinite-lowlands-88888</span>...  
 
  <span style="color:#729FCF">~</span> <span style="color:#8AE234">$</span>
 
  <span style="color:#729FCF">~</span> <span style="color:#8AE234">$</span>
  
Line 27: Line 27:
 
== Create a config ==
 
== Create a config ==
 
* Back on the development machine:
 
* Back on the development machine:
−
  cd nextcloud-15.0.8/server/config
+
  cd nextcloud-15.0.7/server/config
  
 
* Create the config file:
 
* Create the config file:

Latest revision as of 20:46, 1 September 2019

Visit the site

If you have not visited the site, you will need to before continuing. Launch the web page to the app, but do not setup the app just yet.

Initial NextCloud Setup

SSH into App

Need to SSH into Heroku after app starts.

heroku ps:exec --app infinite-lowlands-88888
Running this command for the first time requires a dyno restart.
Do you want to continue? [y/n]: y
Initializing feature... done
Restarting dynos... done
Waiting for web.1 to start... done
Establishing credentials... done
Connecting to web.1 on ⬢ infinite-lowlands-88888... 
~ $

Get the current Config

cd server/config
cat config.php
<?php
$CONFIG = array (
  'instanceid' => 'oczm2c0yitlu',
);

Create a config

  • Back on the development machine:
cd nextcloud-15.0.7/server/config
  • Create the config file:
cat > config.php
<?php
$CONFIG = array (
  'instanceid' => 'oczm2c0yitlu',
);

Ctrl+D

git add .
git commit -m "Initializing config.php"
  • Push up code changes and restart the server
git push heroku master

Return